在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)
解决方案 »
- 求微信实现思路。。。
- AlertDialog的使用和自定义Dialog
- android数据库的查询问题
- Android怎么用代码把系统的窗口小部件中的模拟时钟放到桌面??
- ImageView怎么确定内容的当前位置?
- 关于listView setAdapter方法,无语纠结中,真心求助。。
- 请教android中Spinner的相关问题
- <Android导航菜单横向左右滑动并和下方的控件实现联动>---之数据加载
- 如何使用 adb shell 开启 便携式WI-FI热点
- 请问关于 jason 是否包含键值的问题
- 安卓项目的raw文件一个有个视频资源,需要调用系统默认的播放器 intent.setDataAndType(uri, "audio/*");这里需要填uri.
- android httpurlconnection或者httpclient总是超时,服务器正常,但网络正常,浏览器可以上网
一是忽略异常:
-dontwarn cn.waps.**
二是使用android4.1.3一下的android-sdk版本进行混淆打包;