$ react-native run-android
error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:
- @react-native-community/geolocation (to unlink run: "react-native unlink @react-native-community/geolocation")
- react-native-bluetooth-status (to unlink run: "react-native unlink react-native-bluetooth-status")
- react-native-device-info (to unlink run: "react-native unlink react-native-device-info")
- react-native-i18n (to unlink run: "react-native unlink react-native-i18n")
- react-native-image-picker (to unlink run: "react-native unlink react-native-image-picker")
- react-native-ux-cam (to unlink run: "react-native unlink react-native-ux-cam")
- react-native-vector-icons (to unlink run: "react-native unlink react-native-vector-icons")
当将React Native从0.60以下升级到0.60或以上时,可能会发生这种情况。展望未来,您可以通过“ react-native unlink”取消关联,并且它将自动包含在您的应用程序中。如果库与自动链接不兼容,请忽略此消息并通知库维护者。进一步了解自动连结:https://github.com/react-native-community/cli/blob/master/docs/autolinking.md信息运行jetifier将库迁移到AndroidX。您可以使用“ --no-jetifier”标志禁用它。Jetifier找到1225个文件进行正向喷射。使用4名工人...信息JS服务器已在运行。信息正在安装应用程序...启动Gradle守护程序,无法重用1个不兼容的守护程序,请使用--status获取详细信息
FAILURE:构建因异常而失败。
式中:构建文件'C:\ Users \ User \ Documents \ GitHub \ walleterp-mobile \ node_modules @ react-native-community \ geolocation \ android \ build.gradle'行:21
出了什么问题:评估项目':@ react-native-community_geolocation'时发生问题。
无法应用插件[id'com.android.library']
并删除“ Android”文件夹中的“ build”文件夹,然后,您可以使用yarn install或npm-install重新安装,并尝试react-native run-android,
我个人创建了一个新项目,并在没有react-native链接的情况下重新安装了所有依赖关系,因为此错误是配置问题,在新版本的React Native中出现,
希望对您有帮助