离线构建错误:无法打开文件进行读取:Android清单xml文件

时间:2017-06-14 07:48:47

标签: cordova ionic-framework build

我是离子平台的新手。我在Windows 10操作系统中运行离子v1项目。执行"离子构建android"在我的节点js命令提示符下我的项目目录路径,我收到以下错误:

:CordovaLib:processDebugResourcesC:\Users\vm48407\Desktop\ZenTS_V3.0.5\ZenTs_Ionic_v3.0.5\platforms\android\CordovaLib\build\intermediates\manifests\aapt\debug\AndroidManifest.xml: error: Unable to open file for read: Permission denied FAILED



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':CordovaLib:processDebugResources'.

BUILD FAILED

Total time: 5.041 secs
> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
C:\Users\vm48407\Desktop\ZenTS_V3.0.5\ZenTs_Ionic_v3.0.5\platforms\android\CordovaLib\build\intermediates\manifests\aapt\debug\AndroidManifest.xml: error: Unable to open file for read: Permission denied


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':CordovaLib:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

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

我检查了项目文件夹的属性,所有关于读/写的权限都已存在,我仍然收到错误。

0 个答案:

没有答案