用android studio打包apk的问题

以下是错误信息:
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Luk/co/senab/photoview/Compat
Error:Execution failed for task ':app:transformClassesWithDexForRelease'.

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 G:\Moneyexchange\app\build\intermediates\transforms\dex\release\folders\1000\1f\main G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_bc6fa630cf13dddbc9e72dd7f3aba2b9cd51d7a1.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\release_0cca68bc8cb9d2fc3e49bd2c61f15ee040b475f8.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\glide-3.7.0_1f3ddf859a86296da03fddcf50d19f29d652df81.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_4999f27ee2bccba3b1d9ca5f4497f67ffbe3d09a.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_59540dd109f7329c044a68a4720ee3860939e47f.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\retrofit-2.1.0_02cdaa5f093e78b272a8b951b62057cb62740b8d.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_91999f92a385be9ea4eb4f7056ca21f7cea3f1f4.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_7cbda6d9011541522ed9c25cade1a6e35e1f8216.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_f14af4277bf1e33d004dd3cffe72b870204d261c.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\uk-co-senab-photoview_98f39f1e63a5baefe6cbe822023d74f2836ccdd4.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_42f1ee2cee217c2a6a4a7ef432060749358c0595.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_afaf65d3e0062bca037b2d284d1ded8cbdd20c10.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\hamcrest-core-1.3_2323b0689b69c651dc52b5f9e0fa5ab289cff959.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\converter-gson-2.1.0_fc6d109c83c05cddded4b5ea732ed5dd7c938086.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\constraint-layout-solver-1.0.2_9ac81d20d17128e2cd1f8d4b8a0fd34ba1a69f7a.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_b3599440e96d81bffd4a0b4432c76b5e566a72fe.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_4830dc9cde2e687b9d91c2839f2be408fc061874.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\support-annotations-25.2.0_4a4b5b43289d807864a8e4b06667a45b4b3adad5.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\rxjava-2.0.1_88fc17d5d72694fd01b893bb935156af845d463f.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_55830afe7dce9536e371ce91113003ae0257fbfc.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_6967c9d3f14fe6fadcc73d1abeca900f5587d82f.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_b04a997ea4eeb88401d7f9b848b3b7778153c1c2.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\gson-2.7_2e85dbf641c4a16c73925139bd4ff50ebb0450dd.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\adapter-rxjava-2.1.0_a922f2c9139fd2cbbf2500b5aa528f1e500fa2f5.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\okhttp-3.4.1_a3a718343956c6e4d917a53a4fdd4a4dc134cda5.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_9855afad2144bd12782bd4f5c6715570685d00de.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\okio-1.9.0_db0545b090bbd931e1cf6e43202e038727277a7d.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_f45acf7bcee5c1c1b647a70fc8d4cd01f67d1800.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\uk-co-senab-photoview-source_5da69885659484faae31ae68650f0e8cdabf5900.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\reactive-streams-1.0.0_5ea215fafe26757b3eaa9e791da078c680959e41.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\rxjava-1.1.9_82a537d5fc11c5aeb9cc44855ce7783630bf9cf4.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\junit-4.12_bca4fc0211375ff0eb614e87bd80b4259fbed036.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\logging-interceptor-3.3.0_b3fde2cef71a54923fc8d0c35792bb7349dfd7bc.jar G:\Moneyexchange\app\build\intermediates\pre-dexed\release\classes_1007fe0210273a76163dfff3deb903130a93f30a.jar}

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐