简体   繁体   English

无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系。 颤振应用

[英]Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. flutter application

when i start to emulate to my android phone and active developer mode and USB debugging ii got these messages and i tried some things but it didn't work enter image description here当我开始模拟我的 android 手机和活动开发者模式和 USB 调试时,我收到了这些消息,我尝试了一些东西,但没有用,请在此处输入图像描述

enter image description here在此处输入图像描述

enter image description here在此处输入图像描述

enter image description here在此处输入图像描述

Based on the images you posted and the error shown you have not accepted Android SDK Licenses (As per your image )根据您发布的图片和显示的错误,您没有接受 Android SDK 许可证(根据您的图片

Run flutter doctor --android-licenses in Terminal在终端中运行flutter doctor --android-licenses

You will be prompted to accept the licenses in the terminal.系统将提示您接受终端中的许可证。

Edit: It looks like as well, you do not have the CMD Line tools installed.编辑:看起来你也没有安装 CMD Line 工具。

Please also run c:\Users\USERNAME\AppData\Local\Android\Sdk --install "cmdline-tools;latest" Make sure to replace USERNAME with your name.请同时运行c:\Users\USERNAME\AppData\Local\Android\Sdk --install "cmdline-tools;latest"确保将 USERNAME 替换为您的姓名。

If you have trouble installing cmdline tools from Terminal refer to this post: cmdline-tools missing如果您在从终端安装 cmdline 工具时遇到问题,请参阅这篇文章: 缺少 cmdline-tools

After you have accepted the licenses and installed cmdline tools try running it again.在您接受许可证并安装 cmdline 工具后,请尝试再次运行它。 Happy Coding快乐编码

Follow these steps for installing command line tools -请按照以下步骤安装命令行工具-

Open command like and enter - <path to android sdkmanager> --install "cmdline-tools;latest"打开类似命令并输入 - <path to android sdkmanager> --install "cmdline-tools;latest"

example,例子,

~/Library/Android/sdk/tools/bin/sdkmanager --install "cmdline-tools;latest" ~/Library/Android/sdk/tools/bin/sdkmanager --install "cmdline-tools;latest"

OR或者

Install Android SDK Command-line Tools in Android Studio:在 Android Studio 中安装 Android SDK 命令行工具:

Preferences → Appearance & Behavior → System Settings → Android SDK → SDK Tools → Android SDK Command-line Tools (latest)首选项 → 外观和行为 → 系统设置 → Android SDK → SDK 工具 → Android SDK 命令行工具(最新)

Follow these steps for android licenses -请按照以下步骤获取 android 许可证 -

Run this on command line - flutter doctor --android-licenses在命令行上运行它flutter doctor --android-licenses

Follow these steps for installing Visual Studio -按照以下步骤安装 Visual Studio -

Just click on the link to download the setup, while the installation process you'll also have to install Desktop development with C++ workload.只需单击链接下载安装程序,而安装过程中您还必须安装Desktop development with C++ Don't worry you'll just see an option while installation process right away.不用担心,您会在安装过程中立即看到一个选项。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法确定 flutter 中任务 &#39;:app:compileDebugJavaWithJavac&#39; 的依赖关系 - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' in flutter 无法确定任务 &#39;:app:compileDebugJavaWithJavac&#39; 的依赖关系。[Flutter] - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.[Flutter] 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 - Flutter - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' - Flutter 无法确定任务 ':app:compileDebugJavaWithJavac' Flutter 的依赖关系 - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' Flutter Flutter - 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 - Flutter - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' flutter run 无法确定任务&#39;:app:compileDebugJavaWithJavac&#39;的依赖关系 - flutter run Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' Flutter 通知 OneSignal - 无法确定任务 &#39;:app:compileDebugJavaWithJavac&#39; 的依赖关系 - Flutter Notification OneSignal - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' 无法确定任务&#39;:app:compileDebugJavaWithJavac Flutter VS的依赖关系 - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac Flutter VS 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系。 flutter 上的问题 - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. problem on flutter 无法确定任务“:app:compileDebugJavaWithJavac”的依赖关系。 - 颤振问题 - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. - Flutter Issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM