Forum

Android IDE debug b...
 
Notifications
Clear all

Android IDE debug build errors


appsfactories
(@appsfactories)
New Member
Joined: 2 years ago
Posts: 2
Topic starter  

Sometimes you cannot compile your flutter app and see something like "Gradle exit with error 1".

In such case it can be useful to debug this in Android Studio.

Open Android Studio and click "Open Project". Instead of opening flutter project, open the "android" folder inside your flutter project folder.

Android Studio will first make "Gradle Sync" and can produce errors and warnings during this process. If sync completed without any errors, try to build an android app (push the green "play" button at the top menu of Android Studio). Android Studio will produce much more debugging logs during the build comparing with flutter project build.

This saved me a lot of time.


Quote
Share: