To cut a long story short, I'm trying to get one of the Google Play Games Services wrappers to work with the latest version of Google Play Services (v9.2.0) so that I can use it in the same app as the Firebase AdMob wrapper. I have successfully updated the Google Play wrapper to work with v9.2.0 & can compile & run the app & confirm that the leaderboard, achievement, etc... functionality works fine. I can also compile the app with the FirebaseAdMob wrapper & confirm that it serves ads - however if I try to compile the app with both the FirebaseAdMob wrapper & the Google Play Games Services wrapper, I get the following error:
There's not really much else I can add that's of any use, except that v9.2.0 of Google Play Services has been broken down into multiple .aar files (which the .jar files can be extracted from) - each one containing a different part of the functionality that used to be in that one big google-play-services.jar. To get the wrapper to work with the Google Play Games Services wrapper, I had to use 7 of those "sub-jars" & put an @DependsOn clause in the java code for all of them. It appears that the error is coming from the play-services-basement-9.2.0 jar file.
Any ideas on how I can get around this?
Thanks - Colin.
B4A version: 6.00
Parsing code. (0.16s)
Running custom action. (0.11s)
Compiling code. (0.60s)
Compiling layouts code. (0.03s)
Organizing libraries. (1.86s)
Generating R file. (0.30s)
Compiling debugger engine code. (2.88s)
Compiling generated Java code. (2.94s)
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lcom/google/firebase/FirebaseApiNotAvailableException;
at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
at com.android.dx.command.dexer.Main.processClass(Main.java:615)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:570)
at com.android.dx.command.dexer.Main.access$2(Main.java:546)
at com.android.dx.command.dexer.Main$2.processFileBytes(Main.java:514)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:537)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:449)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:236)
at com.android.dx.command.dexer.Main.run(Main.java:206)
at com.android.dx.command.dexer.Main.main(Main.java:179)
at com.android.dx.command.Main.main(Main.java:103)
1 error; aborting
There's not really much else I can add that's of any use, except that v9.2.0 of Google Play Services has been broken down into multiple .aar files (which the .jar files can be extracted from) - each one containing a different part of the functionality that used to be in that one big google-play-services.jar. To get the wrapper to work with the Google Play Games Services wrapper, I had to use 7 of those "sub-jars" & put an @DependsOn clause in the java code for all of them. It appears that the error is coming from the play-services-basement-9.2.0 jar file.
Any ideas on how I can get around this?
Thanks - Colin.