Cannot create android app from an archive \app\libs\appodeal-2.1.11.jar' containing both DEX and Java-bytecode content

天大地大妈咪最大 提交于 2020-01-01 16:32:25

问题


I am trying to add appodeal jar file to my project, but this error occurs:

Cannot create android app from an archive app\libs\appodeal-2.1.11.jar' containing both DEX and Java-bytecode content

Also android.enableD8=false not works.

I am using buildToolsVersion 3.1.3, gradle-4.8 and multidex-1.0.2 library. How can I resolve this issue? Thanks


回答1:


You should use special multidex version of sdk, integrate it instead of regular version. Regards.

https://s3-us-west-1.amazonaws.com/appodeal-android/2.1.11/Appodeal-Android-SDK-2.1.11-150318-all-nodex.zip




回答2:


add android.enableR8=false in gradle.properties add -ignorewarnings in proguard-rules.pro



来源:https://stackoverflow.com/questions/51997572/cannot-create-android-app-from-an-archive-app-libs-appodeal-2-1-11-jar-contain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!