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与项目的一致即可

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容