无法确定任务':app:installDebug'的依赖关系

时间:2020-11-10 11:13:00

标签: java android react-native android-studio

我是本机反应的新手。 从AVD Manager启动它时,我将Android Studio和模拟器​​设置为正常工作。但是,当我运行 react-native run-android 时,出现此错误:

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.2/userguide/command_line_interface.html#sec:command_line_warnings

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:installDebug'.
> java.io.IOException: The filename, directory name, or volume label syntax is incorrect

* 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 4s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

有什么遗漏吗?我该怎么办?

提前谢谢

0 个答案:

没有答案