Android studio 在vscode中运行颤振应用程序并获取此错误无法确定任务';的依赖关系:应用程序:CompiledBugJavaWithJavaC';
我目前正面临在物理设备(手机)上运行颤振应用程序的问题。我正在使用android studio 4和vscode。下面是错误消息Android studio 在vscode中运行颤振应用程序并获取此错误无法确定任务';的依赖关系:应用程序:CompiledBugJavaWithJavaC';,android-studio,flutter,visual-studio-code,Android Studio,Flutter,Visual Studio Code,我目前正面临在物理设备(手机)上运行颤振应用程序的问题。我正在使用android studio 4和vscode。下面是错误消息 Launching lib\main.dart on TECNO B1f in debug mode... lib\main.dart:1 FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:co
Launching lib\main.dart on TECNO B1f in debug mode...
lib\main.dart:1
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to find target with hash string 'android-29' in: C:\Users\Kitsson\AppData\Local\Android\sdk
* 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 7m 8s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
我建议4种方法来解决这个问题,一个接一个地尝试,直到它适合你:
flatter-doctor-android许可证
。只要接受所有,它就应该工作,如果没有,就跳到下一步
android=>app=>build.gradle中添加buildToolsVersion
android{compilesdkkversion29构建工具版本“29.0.0”…}