Android Studio混淆打包错误
2017-08-23 17:00
253 查看
Android Studio混淆打包错误
Warning:Exception while processing task java.io.FileNotFoundException: D:…\app\build\intermediates\proguard-rules\release\aapt_rules.txt (系统找不到指定的路径。)Error:Execution failed for task ‘:app:transformClassesAndResourcesWithProguardForRelease’.> Job failed, see logs for details
有一个混淆的文件找不到了,但是这个文件是系统生成的,那怎么办,我们只需要在菜单栏选择build –> Clean Project ,然后在build –> Make Project即可,然后就能在这个路径下找到这个aapt_rules.txt文件了,再次build apk就不会报错了哦(注意:混淆的是release)
Generate Signed APK: Errors while building APK. You can find the errors in the ‘Messages’ view.
在build.gradle文件里加上这样的一句话:
lintOptions {
checkReleaseBuilds false
abortOnError false
}
然后你重新打包编译,就会出现错误提示了:然后根据错误再调试代码
com.Android.build.api.transform.TransformException: Java.util.zip.ZipException:
duplicate entry: xxxxxxxxxxxxxxx.class
* Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug
option to get more log output.
这就是说重复引用了名叫’xxxxxxxxxxxxxxx’的类,把重复引用的’xxxxxxxxxxxxxxx’依赖包删掉。注:duplicate翻译是重复条目
相关文章推荐
- android studio 代码混淆打包错误 The same input jar is specified twice
- android studio 代码混淆打包错误 The same input jar is specified twice
- Android打包proguard混淆后的常见错误
- Android studio 代码混淆及打包apk
- android studio 将引用第三方jar和.so的项目打包jar并混淆
- android studio 打包jar 及混淆
- Android混淆打包及混淆后运行错误
- Android Studio 混淆,多渠道打包,反编译 使用
- Android studio的使用 -- 代码混淆与打包
- 使用Android Studio应用打包+代码混淆
- android studio中打包混淆
- Android Studio混淆打包配置
- android studio 混淆打包
- Android Studio 混淆打包
- Android Studio 项目混淆打包时,报错Caused by: java.lang.NoSuchMethodError: android.util.Xml.newPullParser
- Android Studio Gradle配置,代码混淆,多渠道一键打包
- Android Studio打包混淆问题总结
- JAVA WEB 工程 SSH框架在Jenkins中打包前使用IDFC Maven ProGuard Plug-in混淆的错误的解决
- Android Studio 打包出现not in translated in "zh"错误
- Android Studio(十一):代码混淆及打包apk