Android Question Admob and Airpush library Error

Phonegames

Member
Licensed User
Longtime User
Hi,

I want to put both admob and airpush ads on my apps, the apps work fine when I use admob or airpush alone, but when I check the both library I got this error :

Parsing code. 0.00
Compiling code. 0.09
Compiling layouts code. 0.01
Generating R file. 0.53
Compiling generated Java code. 2.41
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/e;
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:685)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
at com.android.dx.command.dexer.Main.access$600(Main.java:78)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
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:596)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)
1 error; aborting
Optimized dexer failed. Switching to Standard dexer.


Library used :
Admob 2.0
Core
mwAdmobInterstitial2
Reflection
StringsUtils

I've tried to remove the node "dependsOn" on the admob and mwAdmobInterstitial2 libray, but it gives other errors.

Can someone please help me with that error ?

Many Thanks
 

Phonegames

Member
Licensed User
Longtime User
Thanks for your quick response, I think the problem is not from the mwAdmobInterstitial2.jar, but from AirpushStandardb4a.jar, because I've already used the library of admob and mwAdmobInterstitial2 on a single project and it works fine. But now I have another error :
java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/f$a;

Is that ok if I delete all the files until the projects works fine ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…