Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Enzo1 · Apr 19, 2016 at 02:35 PM · androidiap

unity iap class not found exception com.unity.purchasing.googleplay.googleplaypurchasing

Hi guys, I was using soomla for iap but i decided to use Unity iap. when i generate a signed apk from android studio, im having AndroidJavaException: java.lang.ClassNotFoundException: com.unity.purchasing.googleplay.GooglePlayPurchasing java.lang.ClassNotFoundException: com.unity.purchasing.googleplay.GooglePlayPurchasing at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:324) at java.lang.Class.forName(Class.java:285) at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.a(Unknown Source) at com.unity3d.player.UnityPlayer$b.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity.purchasing.googleplay.GooglePlayPurchasing" on path: DexPathList[[zip file "/data/app/com.librasoftworks.graveeGame-2/base.apk"],nativeLibraryDirectories=[/data/app/com.librasoftworks.graveeGame-2/lib/arm, /data/app/com.librasoftworks.graveeGame-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.

im using unity 5.3.4f1 personal, android studio 23(1.7)

anyone can help?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by bazhi · Apr 21, 2016 at 07:50 AM

Unity didn't add some *.aar files to the project. the follow steps are my method to resolve it.

  1. Export Google Android project.

  2. Open Android Studio.

  3. select Import project(Eclipse ADT, Gradle, ect).

  4. select the project you export and open it and clicked Next and Finsh.

  5. Then you can find there is not .aar files in “libs” folder. So you should copy all .aar files to the libs.

  6. Add some code to the build.gradle setting files.

just like this:

 apply plugin: 'com.android.application'
 
 android {
     compileSdkVersion 23
     buildToolsVersion "23.0.2"
 
     defaultConfig {
         applicationId "com.Gamation.PollQuest"
         minSdkVersion 9
         targetSdkVersion 23
     }
 
     buildTypes {
         release {
             minifyEnabled false
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
         }
     }
 
     repositories {
         flatDir {
             dirs 'libs'
         }
     }
 }
 dependencies {
     compile files('libs/unity-classes.jar')
     compile(name:'common', ext:'aar')
     compile(name:'GoogleAIDL', ext:'aar')
     compile(name:'GooglePlay', ext:'aar')
 }

if you didn't resolve you problem. you can send email to me. my email: bazhicc@163.com

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Enzo1 · Apr 23, 2016 at 04:26 PM

Hi, thanks for your reply. There are several unclear points with your answers:

1 Done

2 Done

3 Done

4 Done

5 You are saying that there are no .aar files in "libs" folder but I have all these .aar files in libs folder

6 I have no build.gradle file as this is not a gradle project.

So the problem persists.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Tankzo · Nov 23, 2020 at 09:19 PM

This popped up again in Unity IAP 2.2.1

It was fixed by Unity in IAP 2.2.2 today.

Release notes:

Version 2.2.2(current)

Released: Nov 23, 2020

[2.2.2] - 2020-11-20

Fixed

Mac App Store - Support for Apple Silicon, arm64 slice added to binary - GooglePlay - ProductMetadata.localizedPrice no longer floors fractions, e.g. "$19.99" was "$19.00" - GooglePlay - Fix several purchasing-flow issues

  • OnPurchaseFailed not called after canceled purchase

    • Exceptions shown in logcat after normal purchase

    • Purchases of consumables left incomplete, resulting in "product already owned" errors

  • GooglePlay - Fix initialization when [Android] "Player Settings > Publishing Settings > Minification: Proguard" is enabled. "AndroidJavaException: java.lang.ClassNotFoundException: com.android.billingclient.api.PurchasesUpdatedListener"

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

78 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Assembly cannot be loaded on Cloud Build. 0 Answers

IAP dont work on android device (unity 2019.1.4// IAP 1.22) 0 Answers

UnityIAP Android restroing problems,UnityIAP doesn't call ProcessPurchase when session closed (App reload) 0 Answers

[HELP] IAP Plugin does not retrieve subscriptions purchases history and active purchased subscription. 0 Answers

Android IAP - getting Duplicate Transcation errors when purchasing a consumable products. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges