简体   繁体   English

离子科尔多瓦建立android --prod --release错误:app:transformDexWithDexForRelease

[英]ionic cordova build android --prod --release Error :app:transformDexWithDexForRelease

Yesterday I used this command and it was generated correctly, today I put sentry and now this command does not work, 昨天我使用了此命令,并且它已正确生成,今天我放了哨兵,现在此命令不起作用,

is it because of the sing that applied yesterday? 是因为昨天唱的歌吗?

FAILURE: Build failed with an exception. 失败:构建失败,发生异常。

  • What went wrong: Execution failed for task ':app:transformDexWithDexForRelease'. 出了什么问题:任务':app:transformDexWithDexForRelease'的执行失败。 com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: Cannot merge new index 66590 into a non-jumbo instruction! com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.dex.DexIndexOverflowException:无法将新索引66590合并为非巨型指令!

  • Try: 37 actionable tasks: 2 executed, 35 up-to-date Run with --stacktrace option to get the stack trace. 尝试:37个可执行的任务:已执行2个,最新的35个---stacktrace选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output. 使用--info或--debug选项运行以获取更多日志输出。

  • Get more help at https://help.gradle.org https://help.gradle.org上获得更多帮助

BUILD FAILED in 7s (node:13676) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. 7秒内建立失败(节点:13676)UnhandledPromiseRejectionWarning:错误:cmd:命令失败,退出代码为1错误输出:FAILURE:生成失败,出现异常。

  • What went wrong: Execution failed for task ':app:transformDexWithDexForRelease'. 出了什么问题:任务':app:transformDexWithDexForRelease'的执行失败。 com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: Cannot merge new index 66590 into a non-jumbo instruction! com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.dex.DexIndexOverflowException:无法将新索引66590合并为非巨型指令!

  • Try: Run with --stacktrace option to get the stack trace. 尝试:使用--stacktrace选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output. 使用--info或--debug选项运行以获取更多日志输出。

  • Get more help at https://help.gradle.org https://help.gradle.org上获得更多帮助

BUILD FAILED in 7s at ChildProcess.whenDone (C:\\Goubun\\Noediiler\\neodiiler-ionic\\platforms\\android\\cordova\\node_modules\\cordova-common\\src\\superspawn.js:169:23) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) (node:13676) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 在7秒内在ChildProcess.whenDone(C:\\ Goubun \\ Noediiler \\ neodiiler-ionic \\ platforms \\ android \\ cordova \\ node_modules \\ cordova-common \\ src \\ superspawn.js:169:23)上失败:13)在Process.ChildProcess._handle.onexit(内部/child_process.js:209:5)上也许在Close(内部/child_process.js:925:16)在ChildProcess.emit(events.js:214:7)(节点:13676)UnhandledPromiseRejectionWarning:未处理的承诺拒绝。 This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 引发此错误的原因可能是抛出了一个没有catch块的异步函数,或者是拒绝了一个.catch()无法处理的承诺。 (rejection id: 1) (node:13676) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. (拒绝ID:1)(节点:13676)[DEP0018] DeprecationWarning:已弃用未处理的承诺拒绝。 In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 将来,未处理的承诺拒绝将以非零退出代码终止Node.js进程。

Run this command in the root of your project : 在项目的根目录中运行以下命令:

cordova plugin add https://github.com/jwall149/cordova-multidex --save cordova插件添加https://github.com/jwall149/cordova-multidex --save

It will install cordova-multidex and your build will work fine. 它将安装cordova-multidex ,您的构建将正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 运行ionic cordova build android --prod --release时发生错误 - An error occurred while running ionic cordova build android --prod --release 离子cordova构建android --prod时出错 - Error in ionic cordova build android --prod 无法读取离子Cordova构建android --prod --release中的属性 - Cannot read property in ionic cordova build android --prod --release Ionic cordova build android –prod –release 只构建一个调试apk (app-debug.apk) - Ionic cordova build android –prod –release only builds a debug apk (app-debug.apk) 离子科尔多瓦建立android --prod - ionic cordova build android --prod Ionic App出错:任务执行失败':transformDexWithDexForRelease' - error with Ionic App: Execution failed for task ':transformDexWithDexForRelease' 使用cordova build --release android时离子构建android错误 - ionic build android error when using cordova build --release android ionic3 cordova构建android --prod --release效果不理想 - ionic3 cordova build android --prod --release don't get the desired effect 离子cordova build --prod - release失败并产生错误 - ionic cordova build --prod --release fails and generate errors 为什么用'--prod --release android'构建Ionic 3 apk会给Google Playstore错误,表明apk是在调试模式下签名的? - Why is Ionic 3 apk build with '--prod --release android' giving Google playstore error that apk was signed in debug mode?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM