[英]i have problem with my flutter app when i run the code gradle task takes too long i tried flutter doctor ,it says that all things is right ,then error
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...运行 Gradle 任务“assembleDebug”...
FAILURE: Build failed with an exception. FAILURE:构建失败并出现异常。
Where: Build file 'C:\Users\tyous\StudioProjects\untitled\android\app\build.gradle' line: 24其中:构建文件 'C:\Users\tyous\StudioProjects\untitled\android\app\build.gradle' 行:24
What went wrong: A problem occurred evaluating project ':app'.出了什么问题:评估项目“:app”时出现问题。
Failed to apply plugin 'com.android.internal.version-check'.
无法应用插件“com.android.internal.version-check”。 Could not create plugin of type 'VersionCheckPlugin'.
无法创建“VersionCheckPlugin”类型的插件。 > Could not generate a decorated class for type VersionCheckPlugin.
> 无法为 VersionCheckPlugin 类型生成修饰的 class。 > Lcom/android/ide/common/repository/GradleVersion;
> Lcom/android/ide/common/repository/GradleVersion;
Try: Run with --stacktrace option to get the stack trace.尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.
使用 --info 或 --debug 选项运行以获得更多日志 output。 Run with --scan to get full insights.
运行 --scan 以获得完整的见解。
Get more help at https://help.gradle.org在https://help.gradle.org获得更多帮助
BUILD FAILED in 3m 51s Exception: Gradle task assembleDebug failed with exit code 1 BUILD FAILED in 3m 51s Exception: Gradle task assembleDebug failed with exit code 1
Just wait for some time, if you code is right, it will run on your Virtual Emulator soon.稍等片刻,如果你的代码是正确的,它很快就会在你的虚拟模拟器上运行。 Android Studio does take time to load and personally lags on my PC if I am doing something simultaneously.
如果我同时做某事,Android Studio 确实需要时间来加载并且个人滞后于我的 PC。
I recommend you to connect your personal device in Android Studio.我建议您在 Android Studio 中连接您的个人设备。 It might give you quicker results.
它可能会给你更快的结果。
Coming back to your error, does this help?回到你的错误,这有帮助吗? Android Studio - Failed to apply plugin [id 'com.android.application']
Android Studio - 无法应用插件 [id 'com.android.application']
if you run the first time it will download the grandle documentation.如果您第一次运行,它将下载 Grandle 文档。 after that it wont take a long time
之后不会花很长时间
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.