小编Ray*_*ldi的帖子

此构建中使用了 React Native 已弃用的 Gradle 功能,使其与 Gradle 8.0 不兼容

安装一些类似react-native-safe-area-context或 的软件包后react-native-screen,我总是遇到这个问题:无法运行该应用程序

当我运行yarn android时:

> Configure project :react-native-async-storage_async-storage
Subproject ':react-native-async-storage_async-storage' has location 'D:\ewm\git\itc\node_modules\@react-native-async-storage\async-storage\android' which is outside of the project root. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0.

> Configure project :react-native-safe-area-context
Subproject ':react-native-safe-area-context' has location 'D:\ewm\git\itc\node_modules\react-native-safe-area-context\android' which is outside of the project root. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0.

> Task :react-native-safe-area-context:compileDebugKotlin
w: D:\ewm\git\itc\node_modules\react-native-safe-area-context\android\src\main\java\com\th3rdwave\safeareacontext\SafeAreaView.kt: (50, 23): 'getter for uiImplementation: UIImplementation!' is …
Run Code Online (Sandbox Code Playgroud)

gradle react-native react-android

8
推荐指数
1
解决办法
2万
查看次数

标签 统计

gradle ×1

react-android ×1

react-native ×1