報錯com.android.build.api.transform.TransformException: java.util.zip.ZipException:
在打包的時候出現打包失敗,於是通過日誌發現如下錯誤
* What went wrong:
[2018-05-07 20:08:11,121] DEBUG Thread-2773 //opt/local/share/apache-tomcat-7.0.32/logs//0EP/ort/al/EPortal-android - Execution failed for task ':transformClassesWithJarMergingForRelease'.
[2018-05-07 20:08:11,121] DEBUG Thread-2773 //opt/local/share/apache-tomcat-7.0.32/logs//0EP/ort/al/EPortal-android - > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/slidingmenu/lib/app/SlidingActivity.class
通過日誌可以知道是在打包的時候出現了zip異常,可以推斷出是因為com/slidingmenu/lib/app/SlidingActivity.class
這個類衝突了,那就是可能有兩個一樣的類,於是就把重點放在jar重複上,終於找到了兩個一樣jar刪除一個就ok
相關文章
- tomcat啟動報錯java.util.zip.ZipException:invalidCENheader(badsignature)TomcatJavaExceptionHeader
- JavaScript報錯型別(報錯速查)JavaScript型別
- com.android.build.api.transform.TransformException: Error while generating the main dex list.AndroidUIAPIORMExceptionErrorWhileAI
- 解決Android打包com.android.build.api.transform.TransformException的問題AndroidUIAPIORMException
- springcloud報錯報UnsatisfiedDependencyExceptionSpringGCCloudException
- redis報錯Redis
- hive 報錯Hive
- spark報錯Spark
- dhcp報錯
- 報錯+2
- 前端報錯前端
- playsound報錯
- 報錯集合
- mybatis報錯MyBatis
- modprobe報錯
- JavaScript報錯JavaScript
- 報錯集
- pnpm 報錯NPM
- Jenkins報錯Jenkins
- vscode使用chrome除錯報錯VSCodeChrome除錯
- npm install 報錯NPM
- NBU報錯83
- pandas merge報錯
- Django 報錯 TemplateDoesNotExistDjango
- 又又報錯
- 20200126 - PHP 報錯PHP
- flutter路由報錯Flutter路由
- mysqlbinlog工具報錯MySql
- python的報錯Python
- webpack build報錯WebUI
- 報錯xxxx of undefinedUndefined
- DocumentDB 報錯“not master”AST
- git報錯集Git
- tailf報錯limitofinotifywatcheswasreachedAIMIT
- pycharm import 報錯PyCharmImport
- 埠占用報錯
- oracle dg報錯Oracle
- dbfread報錯ValueError錯誤解決方法Error