Bug? Analytics and Admob together, program no longer compiles

royalke

Member
Licensed User
Longtime User
I am using the following libraries:
AdMob - following the tutorial for admob 2.0
Analytics - following the tutorial
Core
IME
Reflection
Phone
SQL -this will be removed as soon as i can encrypt my sql
SQLCipher

I'm not at my computer right now so there might be another couple

Analytics works properly
Admob seems to work properly - i have added all references but haven't created the account yet, it compiles

if they are both turned on compiling never occurs, timing out and citing an error. the same error turns up in the forums as being a library conflict? it seems likely if one or the other work but not both
 

royalke

Member
Licensed User
Longtime User
Parsing code. 0.05
Compiling code. 0.17
Compiling layouts code. 0.02
Generating R file. 0.26
Compiling generated Java code. 2.87
Convert byte code - optimized dex. Error
Process timed out.
You can change the timeout value under Tools - IDE Options. Optimized dexer failed. Switching to Standard dexer.

The following objects added permissions (duplicates are ignored):
ServerSocket:
android.permission.INTERNET
android.permission.ACCESS_WIFI_STATE
android.permission.ACCESS_NETWORK_STATE
AnalyticsTracker:
android.permission.INTERNET
android.permission.ACCESS_NETWORK_STATE
AdView:
android.permission.INTERNET
android.permission.ACCESS_NETWORK_STATE
File.DirRootExternal / File.DirDefaultExternal:
android.permission.WRITE_EXTERNAL_STORAGE
DEBUGGER:
android.permission.INTERNET
android.permission.BLUETOOTH
android.permission.WRITE_EXTERNAL_STORAGE
android.permission.BLUETOOTH_ADMIN


this is all the error i can get so far
 

royalke

Member
Licensed User
Longtime User
I changed compile time from 30seconds to 300 seconds and here's a new error message this is in release mode:

Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
at com.android.dx.ssa.DomFront.<init>(DomFront.java:66)
at com.android.dx.ssa.SsaConverter.placePhiFunctions(SsaConverter.java:296)
at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:51)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:98)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:303)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:139)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:94)
at com.android.dx.command.dexer.Main.processClass(Main.java:682)
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)
Optimized dexer failed. Switching to Standard dexer.
 
Top