react-native运行项目报com.android.ide
2020-12-01 本文已影响0人
Take_And_Give
一般报这种错误的小伙伴们记住了
是Rn 依赖里面
compileSdkVersion 和 buildToolsVersion 版本和你的android 不一致导致的
如下图(举例)

错误信息
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-prompt-android:processReleaseResources'.
> 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.
建议改为和android里面的一致就可以了 !!!