Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
See original GitHub issueEnvironment
"react": "16.11.0",
"react-native": "0.62.2",
"react-native-webview": "^10.3.1"
Run command
yarn android
Problem Description
> Task :react-native-webview:compileDebugJavaWithJavac FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings
114 actionable tasks: 111 executed, 3 up-to-date
注: /Users/chen/ReactNative/CxyParent1/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
注: /Users/chen/ReactNative/CxyParent1/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: /Users/chen/ReactNative/CxyParent1/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
注: /Users/chen/ReactNative/CxyParent1/node_modules/react-native-view-shot/android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
/Users/chen/ReactNative/CxyParent1/node_modules/react-native-webview/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewModule.java:276: 错误: 找不到符号
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
^
符号: 变量 Q
位置: 类 VERSION_CODES
注: /Users/chen/ReactNative/CxyParent1/node_modules/react-native-webview/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: /Users/chen/ReactNative/CxyParent1/node_modules/react-native-webview/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
1 个错误
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-webview:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 15s
How to solve it.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:7
Top Results From Across the Web
Deprecated Gradle features were used in this build, making it ...
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Run with --stacktrace option to get the stack trace....
Read more >Deprecated Gradle features were used in this build ... - GitHub
I got this error as well today: "Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0." It looks...
Read more >Upgrading your build from Gradle 5.x to 6.0
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation ...
Read more >Deprecated Gradle features were used in this build, making it
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Run with --stacktrace option to get the stack trace....
Read more >Deprecated Gradle features were used in this build, making it ...
For a long time I can not find the cause of this error, please help me figure it out. Errors began to appear...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Working in v9.4.0, stops working at v10.0.0.
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically