第一,
BUILD FAILED
F:\explorer\eclipseProjects\RKOByreadReader\lenovo_build.xml:134: Execute failed: java.io.IOException: Cannot run program "F:\explorer\android-sdk-windows4.0\android-sdk\tools\aapt.exe": CreateProcess error=2, ϵͳÕҲ»µ½ָ¶
原因:
sdk4.0中编译工具目录有调整,\platforms下子sdk中的tools文件夹没有了,都到根目录下得plantforms-tools中,需要修改ant编译的路径,
第二,
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added:
Lcom/google/ads/ad;
原因:
由于admob最近无法使用,链接不上服务器,所以升级了admob sdk,不过没有删除老的sdk,导致compile的时候可能两个sdk都编译了,在dex的时候就报重复错误,删除老的sdk就好了。
第三,
proguard不混淆第三方包得方法:
-keep class com.admogo.**
-keep class com.admogo.adapters.**
-keep class com.admogo.anim.**
-keep class com.admogo.obj.**
-keep class com.admogo.util.**
-keep class com.baidu.**
-keep class com.casee.adsdk.**
-keep class com.casee.adsdk.gifview.**
-keep class com.casee.apptrack.**
-keep class com.casee.update.**
-keep class cn.domob.android.a.**
-keep class cn.domob.android.ads.**
-keep class cn.domob.android.ads.a.**
-keep class cn.domob.android.ads.b.**
-keep class cn.domob.android.ads.c.**
-keep class net.youmi.android.**
-keep class com.google.ads.**
-keep class com.google.ads.searchads.**
-keep class com.google.ads.util.**
-keep class com.anwo.adsdk.**
分享到:
评论