ionic打包报错Execution failed for task ':compileDebugJav
发布时间:2020-12-17 08:23:04 所属栏目:安全 来源:网络整理
导读:添加ionic插件cordova-plugin-file可能会遇到如下报错 提示信息 :processDebugResources:generateDebugSources:compileDebugJavaapache/cordova/filetransfer/FileTransfer.java:59: error: package org.apache.cordova.file does not existimport org.apach
添加ionic插件cordova-plugin-file可能会遇到如下报错
:processDebugResources :generateDebugSources :compileDebugJava apache/cordova/filetransfer/FileTransfer.java:59: error: package org.apache.cordova.file does not exist import org.apache.cordova.file.FileUtils; ^ apache/cordova/filetransfer/FileTransfer.java:912: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); ^ symbol: class FileUtils cordova/filetransfer/FileTransfer.java:912: error: cannot find symbol FileUtils filePlugin = (FileUtils) pm.getPlugin("File"); :compileDebugJavaWithJavac FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debugoption to get more log output. BUILD FAILED Total time: 6 mins 51.314 secs 如果你在ionic cordova platform add android时,有注意到cordova-plugin-file是需要cordova-android版本大于等于6.3.0
所以只需要运行命令ionic cordova platform remove android ionic cordova platform add android@6.3.0这样就在运行ionic build就能打包成功了 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Bootstrap下拉菜单样式
- 如果没有shell环境,如何使用RVM从特定的Ruby版本运行“bund
- 专家观察 | 汤人杰:“浙江移动DCOS规模实践与演进”
- scala – SQLContext暗示
- angular – PrimeNG日历错误 – 未定义JQuery
- angularjs – 如何在Angular中添加可重用的模态对话框?
- angularjs – Angular – 从控制器中的URL路径返回ID
- 解决Bootstrap模态窗口Modal中使用Kindeditor或UEditor编辑
- bootstrap响应式工具使用详解
- angular1.5.3.min.js:116 SyntaxError: Unexpected token g