Execution failed for task ':react-native-tcp:verifyReleaseResources'

打包安卓app的时候报错Execution failed for task ':react-native-tcp:verifyReleaseResources',查看命令行与react-native-tcp相关的warning信息

> Configure project :react-native-tcp 
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.4.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

原因

发现是react-native-tcpSDK Version与项目的配置不一致(应该是react-native-tcp很久未维护的原因....)

解决方案

react-native-tcpSDK Version与项目的一致即可

你可能感兴趣的:(Execution failed for task ':react-native-tcp:verifyReleaseResources')