【发布时间】:2017-02-14 22:43:23
【问题描述】:
我是在 cordova/phonegap 中构建应用程序的新手。 今天我尝试为 android 构建我的应用程序,但编译失败。
我真的不知道我做错了什么。 它在浏览器和我手机上的 phonegap 应用上运行良好。
Phonegap 版本 0.4.3 / Cordova android 5.2.2 (java jdk1.8.0_101)
我在我的项目中使用这个插件:
- cordova-plugin-camera 2.3.1“相机”
- cordova-plugin-compat 1.1.0“兼容”
- cordova-plugin-file 4.3.1“文件”
- cordova-plugin-inappbrowser 1.3.0“InAppBrowser”
- cordova-plugin-whitelist 1.3.1“白名单”
我觉得没什么特别的?
我得到的编译错误:
- 出了什么问题:
Execution Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: (my_project_folder)\platforms\android\src\org\apache\cordova\file\AssetFilesystem.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
FAILURE: Build failed with an exception.
- 出了什么问题:
Execution failed for task ':transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException:
java.lang.RuntimeException: com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException:
com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_101\bin\java.exe'' finished with non-zero exit value 1
我想补充一下,虚拟项目编译良好(来自 phonegap 的 hello world 项目) 真的不知道它可能是什么? 我必须从哪里寻找问题?
【问题讨论】:
标签: java android cordova compiler-errors phonegap-cli