Finished with error: Gradle task assembleDebug failed with exit code 1

前端 未结 16 2078
执笔经年
执笔经年 2020-12-10 06:33
Launching lib\\main.dart on HTC One M9PLUS in debug mode... Initializing gradle... Resolving dependencies... Gradle task \'assembleDebug\'... registerResGeneratingTa         


        
相关标签:
16条回答
  • 2020-12-10 06:53

    I downloaded a flutter app code with firebase from Github and run the code in android studio and it was not working but I followed what @Bhargav Rao said in the above comments just paste flutter pub upgrade in the android studio terminal after that above you will see an option Pub Upgrade press that button and wait for a min then you can run the project.

    0 讨论(0)
  • 2020-12-10 06:54

    Enable VT x from android bios settings....

    0 讨论(0)
  • 2020-12-10 06:55

    I was not connected to the internet and had this error. Just connect to the internet and run your app again. Flutter needs an internet connection on the first run.

    0 讨论(0)
  • 2020-12-10 06:58

    This error was coming in my android studio because AppData folder was a hidden folder. AppData contains Android SDK files. Error was gone after removing hidden mode of AppData. You can find AppData folder in C:\Users(YourPc)\AppData.

    0 讨论(0)
  • 2020-12-10 06:58

    Just run the app with Start Debugging. This solved the problem for me.

    0 讨论(0)
  • 2020-12-10 07:00

    Ok so here is your fix, open android sdk settings and uncheck Hide Obsolete Packages and in sdk tools, Check Android SDK Tools (Obsolete) than click ok/apply. It will download old SDK. Than Restart the IDE, Run default flutter program on emulator. This error occurs because flutter isn't compatible with latest Android SDK so you have yo manually install old SDK in Android studio.

    0 讨论(0)
提交回复
热议问题