[英]React-Native Android Studio Project Build failed showing "Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0."
I'm working on a React-Native
project and it is not building the project in Android Studio by showing the error 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 中构建项目
And the issue is accessing the file as it is showing The process cannot access the file because it is being used by another process.
问题是访问文件,因为它显示
The process cannot access the file because it is being used by another process.
When I build the project, it shows the exception as under:当我构建项目时,它显示如下异常:
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
Any solution on how to solve it?关于如何解决它的任何解决方案? My project packages are as under:
我的项目包如下:
"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"
Found the solution with the help of my senior, when he tried to delete this file E:\\Project\\android\\app\\build\\intermediates\\processed_res\\debug\\processDebugResources\\out\\resources-debug.ap_:
it was unable to delete and showed the message that the file is already opened in Java(TM) Platform SE Binary
.在我前辈的帮助下找到了解决方案,当他尝试删除此文件
E:\\Project\\android\\app\\build\\intermediates\\processed_res\\debug\\processDebugResources\\out\\resources-debug.ap_:
无法删除并显示文件已在Java(TM) Platform SE Binary
打开的消息。 So simply open the Task Manager and end the task.所以只需打开任务管理器并结束任务。 Now the app is Building Successfully.
现在该应用程序正在成功构建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.