distriqt / ANE-GooglePlayServices

Shared library including the Google Play Services Client Library
https://airnativeextensions.com
18 stars 1 forks source link

v30.2.0 error at compilation #35

Closed yvant closed 4 weeks ago

yvant commented 1 month ago

Using FlashDevlop on Windows with the latest AIR SDK (4.6.0+51.1.1.4), I get an error when package AIR. Before the ANE-GooglePlayService v30.2.0 and the ANE-AndroidSupport Release v2.9.2, my ANEs were up to date and I was able to compile.

Here's the error:

unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed: FAILURE: Build failed with an exception.

BUILD FAILED in 39s

java.io.IOException: Unable to run java: com.adobe.air.ADTException: gradle tool failed: FAILURE: Build failed with an exception.

BUILD FAILED in 39s

    at com.adobe.air.apk.AABOutputStream.buildGradle(AABOutputStream.java)
    at com.adobe.air.apk.AABPackager.renameOutput(AABPackager.java)
    at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java)
    at com.adobe.air.apk.AABPackager.createPackage(AABPackager.java)
    at com.adobe.air.ADT.parseArgsAndGo(ADT.java)
    at com.adobe.air.ADT.run(ADT.java)
    at com.adobe.air.ADT.main(ADT.java)

APK setup creation FAILED.

Here are the included extensions in the application.xml:

androidx.appcompat
<extensionID>androidx.browser</extensionID>
<extensionID>androidx.cardview</extensionID>
<extensionID>androidx.constraintlayout</extensionID>
<extensionID>androidx.core</extensionID>
<extensionID>androidx.datastore</extensionID>
<extensionID>androidx.emoji2</extensionID>
<extensionID>androidx.room</extensionID>
<extensionID>androidx.vectordrawable</extensionID>
<extensionID>androidx.work</extensionID>
<extensionID>com.android.installreferrer</extensionID>
<extensionID>com.distriqt.Adverts</extensionID>
<extensionID>com.distriqt.ApplicationRater</extensionID>
<extensionID>com.distriqt.Bolts</extensionID>
<extensionID>com.distriqt.Core</extensionID>
<extensionID>com.distriqt.Firebase</extensionID>
<extensionID>com.distriqt.GameServices</extensionID>
<extensionID>com.distriqt.IDFA</extensionID>
<extensionID>com.distriqt.InAppBilling</extensionID>
<extensionID>com.distriqt.Notifications</extensionID>
<extensionID>com.distriqt.PackageManager</extensionID>
<extensionID>com.distriqt.Share</extensionID>
<extensionID>com.distriqt.facebook.Core</extensionID>
<extensionID>com.distriqt.firebase.Crashlytics</extensionID>
<extensionID>com.distriqt.playservices.Ads</extensionID>
<extensionID>com.distriqt.playservices.AdsIdentifier</extensionID>
<extensionID>com.distriqt.playservices.AppSet</extensionID>
<extensionID>com.distriqt.playservices.Auth</extensionID>
<extensionID>com.distriqt.playservices.Base</extensionID>
<extensionID>com.distriqt.playservices.CloudMessaging</extensionID>
<extensionID>com.distriqt.playservices.Drive</extensionID>
<extensionID>com.distriqt.playservices.Gamesv2</extensionID>
<extensionID>com.distriqt.playservices.Licensing</extensionID>
<extensionID>com.google.android.datatransport</extensionID>
<extensionID>com.google.android.play</extensionID>
<extensionID>com.google.code.gson</extensionID>
<extensionID>com.google.dagger</extensionID>
<extensionID>com.google.firebase.core</extensionID>
<extensionID>com.google.guava</extensionID>
<extensionID>com.jetbrains.kotlin</extensionID>
<extensionID>com.gameanalytics.sdk</extensionID>
yvant commented 1 month ago

Here's a list of the included libs image

marchbold commented 1 month ago

We have recently update our playservices appset lib to v16.1.0. Looks as though one of the extensions you are using packages an old version.

Try removing extensions not developed by us to find which extension has the old version in it and then we can help you remove it.

yvant commented 1 month ago

Thanks, in the end I was able to compile by disabling GameAnalytics. How can I make it work? They haven't updated their ANE for 2 years.

marchbold commented 1 month ago

I'll see if there's something we can do.

yvant commented 1 month ago

Any news on how to update the ANEs and making them work with GameAnalytics?

marchbold commented 1 month ago

Try this version, I've just removed the play services libs packaged with the extension:

marchbold commented 1 month ago

https://drive.google.com/file/d/1-VoZ_48rEbZGvzF90hFqxYEvb8_O3wDX/view?usp=sharing

yvant commented 4 weeks ago

Thanks! I integrated it in my previous version, I was able to compile it and I'm still getting the events from GA. I didn't know you could change anothe ANE, thanks for the support!