Reputation: 167
I'm seeing these errors after fresh ionic, cordova, and JDK update installations when I do android build:
BUILD FAILED
Total time: 6.254 secs FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'c:\Android\sdk\build-tools\24.0.2\aapt.exe'' finished with non-zero exit value 1
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: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'c:\Android\sdk\build-tools\24.0.2\aapt.exe'' finished with non-zero exit value 1
Upvotes: 1
Views: 935
Reputation: 185
I had the same problem reinstalled SDK didn't work removed old sdk and reinstalled SDK did't work
You need to delete the android folder form the platform folder and execute
ionic run android
this will reinstall the platform automatically and build from scratch. I think the cache files are the problem so that is why I think this worked.
I hope it will also work for others.
Upvotes: 0