Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[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:
    21
    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:
    21
    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.