• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android :library:compileReleaseJavaWithJavac

P

PlayLight

Guest
The extension update is a small update which also includes the Gradle injection above. So you do not need to adjust any injections with that version.
This works for all 3 recent branches (Stable, Beta and EA)

It was mentioned that your SDK Manager is not showing package updates.

In your SDK Manager click on the 'Tools' dropdown menu and select 'Options'.
In options under 'Manifest Cache' click on 'Clear Cache', then click 'Close'.
Click on the 'Packages' dropdown menu and select 'Reload'.
An updated package-list should now be retrieved.

I have also updated post #11 of this thread with the packages to install for the Latest Stable, Beta and EA.
 
T

TheMatrixHasMe

Guest
HOLY SH*T I think it worked! I did not believe it would. Wow I am stunned.

BTW I think when I installed that new version of the APK Expansion, it already had that injection in there. Unless it remembered it from my previous version.

Anyway, thank you SO MUCH for helping with that! Gamemaker, man. It is always something.

Bob
Glad I could help, I've been there my self :)
 
J

Jakenbear

Guest
For the life of me I can not seem to get the following libraries to show up in my SDK Manager.

Google Play APK Expansion Library (rev 3)
Google Play Licensing Library (rev 2)

I only see (rev 1) for both of the above.

I think having these outdated may be leading to billing not loading properly.

Code:
02-02 12:33:08.831 23312 23312 I yoyo    : BILLING: setupInAppBilling
02-02 12:33:08.831 23312 23312 I yoyo    : Failed to initialize Google Play Services IAP functionality - could not initialise RunnerBilling:java.lang.ClassNotFoundException: com.vagabonddog.getthepuckhomegame.RunnerBilling
02-02 12:33:08.831 23312 23312 I yoyo    : java.lang.ClassNotFoundException: com.vagabonddog.getthepuckhomegame.RunnerBilling
02-02 12:33:08.831 23312 23312 I yoyo    : com.vagabonddog.getthepuckhomegame.RunnerBilling
02-02 12:33:08.831 23312 23312 W System.err: java.lang.ClassNotFoundException: com.vagabonddog.getthepuckhomegame.RunnerBilling
02-02 12:33:08.841 23312 23312 W System.err:    at java.lang.Class.classForName(Native Method)
02-02 12:33:08.841 23312 23312 W System.err:    at java.lang.Class.forName(Class.java:324)
02-02 12:33:08.841 23312 23312 W System.err:    at java.lang.Class.forName(Class.java:285)
02-02 12:33:08.841 23312 23312 W System.err:    at com.vagabonddog.getthepuckhomegame.GooglePlayServicesExtension.InitRunnerBilling(GooglePlayServicesExtension.java:443)
02-02 12:33:08.841 23312 23312 W System.err:    at java.lang.reflect.Method.invoke(Native Method)
02-02 12:33:08.841 23312 23312 W System.err:    at com.yoyogames.runner.RunnerJNILib.CallExtensionFunction(RunnerJNILib.java:1195)
02-02 12:33:08.841 23312 23312 W System.err:    at com.vagabonddog.getthepuckhomegame.RunnerActivity.SelectGooglePlayBilling(RunnerActivity.java:1763)
02-02 12:33:08.841 23312 23312 W System.err:    at com.vagabonddog.getthepuckhomegame.RunnerActivity.setupInAppBilling(RunnerActivity.java:1797)
02-02 12:33:08.841 23312 23312 W System.err:    at com.vagabonddog.getthepuckhomegame.RunnerActivity.doSetup(RunnerActivity.java:534)
02-02 12:33:08.841 23312 23312 W System.err:    at com.vagabonddog.getthepuckhomegame.DemoRenderer$2.run(DemoRenderer.java:577)
02-02 12:33:08.841 23312 23312 W System.err:    at android.os.Handler.handleCallback(Handler.java:739)
02-02 12:33:08.841 23312 23312 W System.err:    at android.os.Handler.dispatchMessage(Handler.java:95)
02-02 12:33:08.841 23312 23312 W System.err:    at android.os.Looper.loop(Looper.java:158)
02-02 12:33:08.841 23312 23312 W System.err:    at android.app.ActivityThread.main(ActivityThread.java:7237)
02-02 12:33:08.841 23312 23312 W System.err:    at java.lang.reflect.Method.invoke(Native Method)
02-02 12:33:08.841 23312 23312 W System.err:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
02-02 12:33:08.841 23312 23312 W System.err:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
02-02 12:33:08.841 23312 23312 W System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.vagabonddog.getthepuckhomegame.RunnerBilling" on path: DexPathList[[zip file "/data/app/com.vagabonddog.getthepuckhomegame-1/base.apk"],nativeLibraryDirectories=[/data/app/com.vagabonddog.getthepuckhomegame-1/lib/arm, /data/app/com.vagabonddog.getthepuckhomegame-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
02-02 12:33:08.841 23312 23312 W System.err:    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
02-02 12:33:08.841 23312 23312 W System.err:    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
02-02 12:33:08.841 23312 23312 W System.err:    at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
02-02 12:33:08.841 23312 23312 W System.err:    ... 17 more
02-02 12:33:08.841 23312 23312 W System.err:    Suppressed: java.lang.ClassNotFoundException: com.vagabonddog.getthepuckhomegame.RunnerBilling
02-02 12:33:08.841 23312 23312 W System.err:            at java.lang.Class.classForName(Native Method)
02-02 12:33:08.841 23312 23312 W System.err:            at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
02-02 12:33:08.841 23312 23312 W System.err:            at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
02-02 12:33:08.841 23312 23312 W System.err:            at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
02-02 12:33:08.841 23312 23312 W System.err:            ... 18 more
02-02 12:33:08.841 23312 23312 W System.err:    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
02-02 12:33:08.841 23312 23312 I yoyo    : BILLING: Google Play permissions not available, selecting NULL billing solution
I would love it if anyone had any insight into how to fix this.
Thanks!
 
J

Jakenbear

Guest
Just wanted to update this in case anyone runs into this issue.

When I first created my project last year there were only two Google Play Extensions available.

GooglePlayServicesExtension

GooglePlayLicensingAsExt

It looks like one of the updates to the extensions above broke out the IAP billing section and now I require the following 3.

GooglePlayServicesExtension

GooglePlayLicensingAsExt

NEW--> GooglePlayServicesIAPExtension

Seems like everything is working again.
 
H

Howard Lehr

Guest
Just wanted to update this in case anyone runs into this issue.

When I first created my project last year there were only two Google Play Extensions available.

GooglePlayServicesExtension

GooglePlayLicensingAsExt

It looks like one of the updates to the extensions above broke out the IAP billing section and now I require the following 3.

GooglePlayServicesExtension

GooglePlayLicensingAsExt

NEW--> GooglePlayServicesIAPExtension

Seems like everything is working again.

Jakenbear,

OK, you pointed out something new... the IAP extension. When installed, the errors you showed above still occur on my log.

1. Did you experience this, but still get IAP working on builds you upload to the Google Play Store??
2. Does it work without the PlayAPKExpansionExtension???

Thanks for any advice.
 
H

Howard Lehr

Guest
TYVM Jakenbear! It works now.

OK, answered my own Question #1. The answer is "No" but if you clean the build 2X, it'll magically work. :)
#2 is still a question. I'll do the trial and error if you aren't using it that'll build a stronger case.

New Question: does all this stuff work for iOS? There are iOS check boxes, but the Google Play Extensions seems like a strange place for iOS stuff... anyone?
 
Top