![](/img/trans.png)
[英]Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. - React native
[英]React-Native Android Studio Project Build failed showing "Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0."
我正在处理一个React-Native
项目,它没有通过显示错误Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0
在 Android Studio 中构建项目
问题是访问文件,因为它显示The process cannot access the file because it is being used by another process.
当我构建项目时,它显示如下异常:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> java.nio.file.FileSystemException: E:\Project\android\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_: The process cannot access the file because it is being used by another process.
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 2s
43 actionable tasks: 2 executed, 41 up-to-date
关于如何解决它的任何解决方案? 我的项目包如下:
"react": "16.8.3",
"react-native": "^0.59.9",
"react-native-elements": "^1.1.0",
"react-native-firebase": "^5.3.1",
"react-native-gesture-handler": "^1.1.0",
"react-native-maps": "^0.24.2",
"react-native-vector-icons": "^6.6.0",
"react-navigation": "^3.6.1"
在我前辈的帮助下找到了解决方案,当他尝试删除此文件E:\\Project\\android\\app\\build\\intermediates\\processed_res\\debug\\processDebugResources\\out\\resources-debug.ap_:
无法删除并显示文件已在Java(TM) Platform SE Binary
打开的消息。 所以只需打开任务管理器并结束任务。 现在该应用程序正在成功构建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.