打包安卓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-tcp
的SDK Version
与项目的配置不一致(应该是react-native-tcp
很久未维护的原因....)
解决方案
将react-native-tcp
的SDK Version
与项目的一致即可