react-native 填坑之路(2):Execution failed for task 'xxx:verifyReleaseResources'

React-Native升级后,其他的关联包没有升级编译器,因此,才会出现这个问题,报错一般是下边这个长相的。

error: invalid file path 'D:\xxx\node_modules\react-native-version-number\android\build\intermediates\manifests\aapt\release\AndroidManifest.xml'.
 
> Task :react-native-version-number:verifyReleaseResources FAILED
 
FAILURE: Build failed with an exception.
 
* What went wrong:
Execution failed for task ':react-native-version-number:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
 
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
 
* Get more help at https://help.gradle.org
 
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings
 

1.首先找到android-studio中的build.gradle
2.修改build.gradle,保持其相关版本与sdk版本一致,详见下图:

react-native 填坑之路(2):Execution failed for task 'xxx:verifyReleaseResources'_第1张图片
q.jpg

你可能感兴趣的:(react-native 填坑之路(2):Execution failed for task 'xxx:verifyReleaseResources')