安卓==>蚂蚁和proguard?
我在混淆我的应用程序时收到以下错误。 如何在 build.xml 中定义输出 jar?
[java] Shrinking...
[java] java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options?
[java] at proguard.shrink.Shrinker.execute(Shrinker.java:148)
[java] at proguard.ProGuard.shrink(ProGuard.java:294)
[java] at proguard.ProGuard.execute(ProGuard.java:100)
[java] at proguard.ProGuard.main(ProGuard.java:499)
I am getting the following error while obfuscating my application.
How can i define the output jar in my build.xml?
[java] Shrinking...
[java] java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options?
[java] at proguard.shrink.Shrinker.execute(Shrinker.java:148)
[java] at proguard.ProGuard.shrink(ProGuard.java:294)
[java] at proguard.ProGuard.execute(ProGuard.java:100)
[java] at proguard.ProGuard.main(ProGuard.java:499)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此处的教程对我来说从未出错。
The tutorial here has never gone wrong for me.
android create project --name <您的项目名称> --package <您的公司名称> --目标7 --路径。 --activity dummy
找到 build.xml,将其复制到项目的根目录中。您应该找到名为./bin/proguard的目录和./bin/-release.apk。您可以更多详细信息。
android create project --name <Your Project Name> --package <Your Company Name> --target 7 --path . --activity dummy
Find build.xml which you can copy to root directory of the project.You should find directory called ./bin/proguard and ./bin/-release.apk. You can find more details here.