在project.properties里面已经开启了混淆proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
proguard-project.txt里面添加了下面几行:-keep public class cn.waps.** {*;}
-keep public interface cn.waps.** {*;}最后还是会被代码混淆,什么原因??
[2013-08-05 12:21:21 - Main] Proguard returned with error code 1. See console
[2013-08-05 12:21:21 - Main] Warning: cn.waps.AdView: can't find referenced method 'void enablePlatformNotifications()' in class android.webkit.WebView
[2013-08-05 12:21:21 - Main] Warning: cn.waps.OffersWebView: can't find referenced method 'void enablePlatformNotifications()' in class android.webkit.WebView
[2013-08-05 12:21:21 - Main] Warning: there were 2 unresolved references to program class members.
[2013-08-05 12:21:21 - Main] Your input classes appear to be inconsistent.
[2013-08-05 12:21:21 - Main] You may need to recompile them and try again.
[2013-08-05 12:21:21 - Main] Alternatively, you may have to specify the option
[2013-08-05 12:21:21 - Main] '-dontskipnonpubliclibraryclassmembers'.
[2013-08-05 12:21:21 - Main] java.io.IOException: Please correct the above warnings first.
[2013-08-05 12:21:21 - Main] at proguard.Initializer.execute(Initializer.java:321)
[2013-08-05 12:21:21 - Main] at proguard.ProGuard.initialize(ProGuard.java:211)
[2013-08-05 12:21:21 - Main] at proguard.ProGuard.execute(ProGuard.java:86)
[2013-08-05 12:21:21 - Main] at proguard.ProGuard.main(ProGuard.java:492)
proguard-project.txt里面添加了下面几行:-keep public class cn.waps.** {*;}
-keep public interface cn.waps.** {*;}最后还是会被代码混淆,什么原因??
[2013-08-05 12:21:21 - Main] Proguard returned with error code 1. See console
[2013-08-05 12:21:21 - Main] Warning: cn.waps.AdView: can't find referenced method 'void enablePlatformNotifications()' in class android.webkit.WebView
[2013-08-05 12:21:21 - Main] Warning: cn.waps.OffersWebView: can't find referenced method 'void enablePlatformNotifications()' in class android.webkit.WebView
[2013-08-05 12:21:21 - Main] Warning: there were 2 unresolved references to program class members.
[2013-08-05 12:21:21 - Main] Your input classes appear to be inconsistent.
[2013-08-05 12:21:21 - Main] You may need to recompile them and try again.
[2013-08-05 12:21:21 - Main] Alternatively, you may have to specify the option
[2013-08-05 12:21:21 - Main] '-dontskipnonpubliclibraryclassmembers'.
[2013-08-05 12:21:21 - Main] java.io.IOException: Please correct the above warnings first.
[2013-08-05 12:21:21 - Main] at proguard.Initializer.execute(Initializer.java:321)
[2013-08-05 12:21:21 - Main] at proguard.ProGuard.initialize(ProGuard.java:211)
[2013-08-05 12:21:21 - Main] at proguard.ProGuard.execute(ProGuard.java:86)
[2013-08-05 12:21:21 - Main] at proguard.ProGuard.main(ProGuard.java:492)
解决方案 »
- android 错误!!Unable to open stack trce'/data/anr/traces.txt' file permission de
- android使用mediaRecorder录制视频问题
- ndk编译的可执行程序调用动态库的路径的问题,帮忙看下
- 大虾,快来看看!
- 4.1.2里面的日历问题
- java,android学习中case语句的一个问题
- 安卓4.0 Phone.apk被屏蔽 如何让他能在抽屉显示 请各位讲解支招
- intent问题
- 求助:关于TCP传输不稳定(估计是丢包)的问题
- 求助,android studio无法连接手机
- 安卓项目的raw文件一个有个视频资源,需要调用系统默认的播放器 intent.setDataAndType(uri, "audio/*");这里需要填uri.
- android httpurlconnection或者httpclient总是超时,服务器正常,但网络正常,浏览器可以上网
一是忽略异常:
-dontwarn cn.waps.**
二是使用android4.1.3一下的android-sdk版本进行混淆打包;