報錯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
相關文章
- com.Android.build.api.transform.TransformException:Java.util.zip.ZipException異常AndroidUIAPIORMExceptionJava
- weblogic 部署應用的時候報錯 java.util.zip.ZipException: ErrorWebJavaExceptionError
- tomcat啟動報錯java.util.zip.ZipException:invalidCENheader(badsignature)TomcatJavaExceptionHeader
- JavaScript報錯型別(報錯速查)JavaScript型別
- java.util.zip.ZipException:ZIP file must have at least one entryJavaExceptionAST
- JavaScript報錯JavaScript
- spark報錯Spark
- mybatis報錯MyBatis
- redis報錯Redis
- 報錯集
- 報錯+2
- playsound報錯
- 前端報錯前端
- dhcp報錯
- springcloud報錯報UnsatisfiedDependencyExceptionSpringGCCloudException
- asm報錯一例-support 報錯rename failedASMAI
- flutter路由報錯Flutter路由
- pycharm import 報錯PyCharmImport
- 埠占用報錯
- webpack build報錯WebUI
- oracle dg報錯Oracle
- python報錯Python
- import moviepy 報錯Import
- 歸檔報錯
- oracle emctl 報錯Oracle
- asmlib 報錯ASM
- jsp報錯JS
- 專案報錯
- git報錯集Git
- DocumentDB 報錯“not master”AST
- 又又報錯
- Jenkins報錯Jenkins
- 解決Android打包com.android.build.api.transform.TransformException的問題AndroidUIAPIORMException
- com.android.build.api.transform.TransformException: Error while generating the main dex list.AndroidUIAPIORMExceptionErrorWhileAI
- 安裝ionic 報錯 安裝canvas報錯 解決辦法Canvas
- Redis 佇列報錯Redis佇列
- NPM run dev 報錯NPMdev
- mysqlbinlog工具報錯MySql