简体   繁体   English

React-Native Android Studio 项目构建失败,显示“此构建中使用了弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容。”

[英]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.

相关问题 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容。 - 反应原生 - Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. - React native 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 8.0 不兼容。 react-native 链接后 - Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. after react-native link “此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 7.0 不兼容。” -反应原生 - "Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0." -REACT-NATIVE 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 7.0 不兼容。 运行react-native时运行-android - Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. When running react-native run-android React Native:Task:app:installDebug FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0 - React Native : Task :app:installDebug FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0 React Native Task :app:processDebugResources FAILED 已弃用的 Gradle 功能在此构建中使用,使其与 Gradle 7.0 不兼容 - React native Task :app:processDebugResources FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0 Unity Android 构建错误 - 此构建中使用了已弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容 - Error on Unity Android Build - Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0 当我执行 gradle lint 时出现错误“此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容” - Error "Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0" When I do gradle lint 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle X 不兼容 - Deprecated Gradle features were used in this build, making it incompatible with Gradle X 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 6 不兼容 - Deprecated Gradle features were used in this build, making it incompatible with Gradle 6
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM