IONIC 3:任务执行失败':app:processDebugResources'

Ans*_*aza 15 cordova ionic-framework ionic3

任务':app:processDebugResources'的执行失败.

执行"ionic cordova build android"时会出现此错误.搜索了很长时间但没有运气.有人可以帮忙吗?

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 4m 18s
(node:9516) [DEP0018] DeprecationWarning: Unhandled promise rejections are 
deprecated. In the future, promise rejections that are not handled will 
terminate the Node.js process with a non-zero exit code.`
Run Code Online (Sandbox Code Playgroud)

小智 13

遇到同样的错误.发现这个解决方案来解决它:

/sf/answers/3442108771/

用平台/ android文件夹下的project.properties文件中的com.android.support:support-v4:27.1.0替换com.android.support:support-v4:+


小智 11

我知道这是一个很晚的答案,以防有人在2019年仍然面临这个问题。

这是由于gradle引起的,请添加此gradle支持插件,应该没问题:

cordova plugin add cordova-android-support-gradle-release
Run Code Online (Sandbox Code Playgroud)


归档时间:

查看次数:

20560 次

最近记录:

6 年,3 月 前