What went wrong: Execution failed for task ':compileArmv7DebugJavaWithJavac'. 问题解决办法
来源:互联网 发布:直播吧软件下载 编辑:程序博客网 时间:2024/06/01 07:46
考虑到ionic开发的app的性能问题,我们在项目打包的时候集成了crosswalk插件,集成指令如下:
ionic plugin add cordova-plugin-crosswalk-webview
集成的时候出现了下面的提示:
Unmet project requirements for latest version of cordova-plugin-crosswalk-webview: cordova-android (5.1.1 in project, >=6 required)Fetching highest version of cordova-plugin-crosswalk-webview that this project supports: 2.1.0 (latest is 2.3.0)Fetching plugin "cordova-plugin-crosswalk-webview@2.1.0" via npmInstalling "cordova-plugin-crosswalk-webview" for android After much discussion and analysis of the market, we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20. So the minSdkVersion of Cordova project is configured to 16 by default.
意思是说当前的Android版本是5.1.1,但是我们在安装crosswalk插件的时候没有指定版本,默认找的是crosswalk最新的版本,所以默认下载了“它”认为匹配的2.1.0版本。安装完成之后,执行以下指令打包apk:
ionic/cordova build android
出现了下面的异常提示:
FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':compileArmv7DebugJavaWithJavac'.> Compilation failed; see the compiler error output for details.* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.造成上面异常的原因是Android版本和默认指定的crosswalk版本不对应产生的,所以我们需要在安装crosswalk的时候指定版本,指令如下:
ionic plugin add cordova-plugin-crosswalk-webview@1.7.2
上面的指令就手动的指定了安装的crosswalk版本。
再次打包,上面的异常信息没有了,打包成功。
BUILD SUCCESSFULTotal time: 2 mins 14.406 secs
1 0
- What went wrong: Execution failed for task ':compileArmv7DebugJavaWithJavac'. 问题解决办法
- Android Studio 中 FAILURE: Build failed with an exception. * What went wrong: Execution failed for ta
- Android Studio Error:Execution failed for task ':***:compileDebugJavaWithJavac'问题解决办法
- Error:FAILURE: Build failed with an exception. * What went wrong: Task '' not found in root projec
- Error:FAILURE: Build failed with an exception. * What went wrong: Task 'generate_360DebugSources' n
- Android-Studio Execution failed for task ':app:processDebugManifest'.问题解决
- Error:Execution failed for task ':app:mergeDebugResources'问题解决
- Execution failed for task ': :dexDebug'
- Execution failed for task ':dexDebug'
- Execution failed for task :mergeDebugResources
- Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed with 问题解决方案
- AS中运行项目时出现Error:Execution failed for task ':app:transformClassesWithDexForDebug'...问题解决
- Not a PNG file...Error Execution failed for task app mergeDebugResource...问题解决
- Error: Execution failed for task ':app:clean'. Unable to delete file问题解决
- Error:Execution failed for task ':app:dexDebug'.
- Execution failed for task ':app:dexDebug'.
- Error:Execution failed for task ':app:compileDebugAidl'.
- Execution failed for task ':app:compileDebugNdk'
- stanford_CS231n_learning note_Lec_02 Image Classification pipeline
- BZOJ 2120 数颜色 分块+二分
- FFMPEG音频解码浅析
- java获取当前时间的方法
- ASP.NET生成二维码
- What went wrong: Execution failed for task ':compileArmv7DebugJavaWithJavac'. 问题解决办法
- 软件维护
- redisson client 介绍及优缺点
- JVM细节
- css3 子元素平均宽度
- 14.04.1-Ubuntu下Docker安装
- springMVC+mybais整合ehcache
- Android视图绘制流程完全解析,带你一步步深入了解View(二)
- linux之V4L2摄像头应用流程