IONIC - ERROR: resource directory 'C:\Windows\System32\myApp\platforms\android\CordovaLib\build\intermediates\bundles\debug\res' does not exist

时间:2016-12-02 05:14:01

标签: android ionic-framework cross-platform

I am trying to run an Ionic app in an Android device. I have added Android as a platform and when trying to build, it gives me the error.

Error: cmd: Command failed with exit code 1 Error output:
ERROR: resource directory 'C:\Windows\System32\myApp\platforms\android\CordovaLib\build\intermediates\bundles\debug\res' does not exist    

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

The 'res' folder is in the given location although the error log sugegst otherwise.

For more information and the log, please refer the attachments.

Can somebody help me out with this? Thanks in advance.

enter image description here enter image description here

1 个答案:

答案 0 :(得分:1)

试试这个:

您可以通过安装Android SDK Platform 24和Android来解决此问题 SDK平台23和Android的源23。