:CordovaLib:compileDebugJavaWithJavac FAILED

时间:2016-09-04 22:27:50

标签: ionic-framework

尝试使用离子构建android编译我的项目,我遇到了错误。

我已尝试过在此社区或其他网站提出的问题中找到的所有建议解决方案。

我试过:

删除文件夹npm_cache

删除Android平台并重新安装

ionic info

Your system information:

Cordova CLI: 6.3.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
OS:
Node Version: v5.5.0


ionic build android

:CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:compileDebugJavaWithJavac

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':CordovaLib:compileDebugJavaWithJavac'.
> java.io.FileNotFoundException: C:\Users\pedromiguel\.gradle\caches\2.13\classAnalysis\cache.properties (El sistema no puede encontrar el archivo especificado)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

FAILED

BUILD FAILED

Total time: 1 mins 6.6 secs

Error: cmd: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':CordovaLib:compileDebugJavaWithJavac'.
> java.io.FileNotFoundException: C:\Users\pedromiguel\.gradle\caches\2.13\classAnalysis\cache.properties (El sistema no puede encontrar el archivo especificado)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

1 个答案:

答案 0 :(得分:2)

您是否尝试过以下操作?

> cordova platform update android
> ionic build android