Search Unity

[Solved] ClassNotFoundException: GooglePlayPurchasing only on Release Build

Discussion in 'Unity IAP' started by Roryyyyyyyyyy, Dec 8, 2017.

Thread Status:
Not open for further replies.
  1. Roryyyyyyyyyy

    Roryyyyyyyyyy

    Joined:
    Jun 8, 2015
    Posts:
    22
    Hi,

    When I build my game for android (using gradle) for debug and try to use the IAP it works as expected - Opens up a message saying the build isn't configured for billing but when built for release I get the error:

    java.lang.ClassNotFoundException: com.unity.purchasing.googleplay.GooglePlayPurchasing

    I have tried the method described here but it seems there aren't any missing .aar files. Any other suggestions would be greatly appreciated.
     
  2. Roryyyyyyyyyy

    Roryyyyyyyyyy

    Joined:
    Jun 8, 2015
    Posts:
    22
    Okay I worked out the problem, I had minify getting rid of some of the code I need. Solved by setting the release minify setting to None in Player Settings > Publishing Settings
     
    ecv80 likes this.
Thread Status:
Not open for further replies.