在我的android应用中,加入了google广告推广的第三方库admob jar, 但是在通过ProGuard混淆打包的时候找不到相关引用的类com.google.ads.internal.state.AdState
jar文件的位置是在 /libs/GoogleAdMobAdsSdk-6.2.1.jar
LogCat error:
Proguard returned with error code 1. See console
Warning:
com.google.ads.m: can't find referenced class com.google.ads.internal.state.AdState
Warning: com.google.ads.m: can't find referenced class com.google.ads.internal.state.AdState
You should check if you need to specify additional program jars.
Warning: there were 2 unresolved references to classes or interfaces.
You may need to specify additional library jars (using '-libraryjars').
java.io.IOException: Please correct the above warnings first.
at proguard.Initializer.execute(Initializer.java:321)
at proguard.ProGuard.initialize(ProGuard.java:211)
at proguard.ProGuard.execute(ProGuard.java:86)
at proguard.ProGuard.main(ProGuard.java:492)
-dontwarn com.google.ads.**
到proguard-project.txt文件中,就可以成功的生成签名apk了!