AGPBI: {"kind":"error","text":"Error converting bytecode to dex:nCause: com.android.dex.DexException: Multiple dex files define Lcom/baidu/android/bbalbs/common/a/a;","sources":[{}],"original":"UNEXPECTED TOP-LEVEL EXCEPTION:ncom.android.dex.DexException: Multiple dex files define Lcom/baidu/android/bbalbs/common/a/a;ntat com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:591)ntat com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:546)ntat com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:528)ntat com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:164)ntat com.android.dx.merge.DexMerger.merge(DexMerger.java:188)ntat com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504)ntat com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)ntat com.android.dx.command.dexer.Main.run(Main.java:277)ntat com.android.dx.command.dexer.Main.main(Main.java:245)ntat com.android.dx.command.Main.main(Main.java:106)n","tool":"Dex"}
:app:transformClassesWithDexForDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --num-threads=4 --output E:androidLocationappbuildintermediatestransformsdexdebugfolders10001fmain E:androidLocationappbuildintermediatespre-dexeddebugbaidumapapi_cloud_v4_3_1_06e5f6f836b85c03555b7a2e2047879fcdf32e26.jar E:androidLocationappbuildintermediatespre-dexeddebugbaidumapapi_map_v4_3_1_aa281239f1a203565f7c4128339006971197b504.jar E:androidLocationappbuildintermediatespre-dexeddebugbaidumapapi_search_v4_3_1_b9baea4b649a18d3d1e68364c2241f089a52389a.jar E:androidLocationappbuildintermediatespre-dexeddebugbaidumapapi_util_v4_3_1_12af64800ad8370286bc7e6616503573194c210c.jar E:androidLocationappbuildintermediatespre-dexeddebugbaidumapapi_radar_v4_3_1_81e7ee76ed1a6789c15930ce02e62f2832bb0925.jar E:androidLocationappbuildintermediatespre-dexeddebugBaiduLBS_Android_e7b4221a0dccaffa397b8680b66cbf1a2922065e.jar E:androidLocationappbuildintermediatespre-dexeddebugdebug_17a959bfe6bb78f8e55dee44d5f1099b83899d52.jar E:androidLocationappbuildintermediatespre-dexeddebugbaidumapapi_base_v4_3_1_2fb61d2e2de8c27e3042d66f58887d51c642517f.jar}
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
回复讨论(解决方案)
jar包导入没?so文件有没有放入jnilibs文件夹?
包都导了的。虽然不知道什么情况,但现在可以了。将就用着吧。