所以,我TRYING释放一些软件,但Proguard的是让我头疼.
当我尝试使用proguard导出时,我收到很多警告,即"找不到引用的类"
例如:
[2011-08-07 17:44:37 - GAME] Warning: org.simpleframework.xml.stream.StreamReader: can't find referenced class javax.xml.stream.events.XMLEvent
[2011-08-07 17:44:37 - GAME] Warning: there were 52 unresolved references to classes or interfaces.
[2011-08-07 17:44:37 - GAME] You may need to specify additional library jars (using '-libraryjars'),
[2011-08-07 17:44:37 - GAME] or perhaps the '-dontskipnonpubliclibraryclasses' option.
[2011-08-07 17:44:37 - GAME] java.io.IOException: Please correct the above warnings first.
[
Run Code Online (Sandbox Code Playgroud)
警告似乎与simpleframework有关,所以在我的proguard配置文件中我添加了以下内容:
-libraryjars pathtoprojecttolibs\simple-xml-2.4.jar
Run Code Online (Sandbox Code Playgroud)
pathtoprojecttolibs我的项目引用的jar的路径在哪里.
这没什么区别.
如果simpleframework引用javax我可以告诉proguard也忽略它吗?
有任何想法吗?
关于ProGuard for Android的新文档说,要在项目主目录的default.properties文件中添加一行.但是,在打开此文件时,我在顶部阅读:
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
Run Code Online (Sandbox Code Playgroud)
我错过了什么吗?
另外,有没有办法让ProGuard仅用于Eclipse的生产构建(即,在导出成品时)?
嘿,我是proGuard的新手,我使用它来保护我的代码免受逆向工程,但是当我构建我的签名apk时,我启用了proGuard时出现了很多错误,我已经搜索了我的问题我发现了使用的答案-dontwarn用于在错误消息中显示的类,但在看到proGuard的文档后,它说
如果您不想过滤掉有问题的课程,可以尝试使用-ignorewarnings选项,甚至是-dontwarn选项.如果您真的知道自己在做什么,请仅使用这些选项.
我不知道我在做什么,这是我的proguard-rules.pro档案
-dontwarn okio.**
-dontwarn org.apache.**
-dontwarn com.appodeal.**
-dontwarn com.parse.**
-dontwarn com.squareup.**
Run Code Online (Sandbox Code Playgroud)
我看到一些答案说使用 -keep class
有人可以解释一下