Stuck in Building Flutter App in my device

Viewed 401

Since the system update of my Vivo y20i device, I am having trouble installing my flutter app. When I run (Ctrl+F5) my app it get stuck in Running Gradle task 'assembleDebug'... sometimes it is stuck in Installing build/app/outputs/apk/app.apk. My developer option is turned on and also the USB Debugging, I tried every solutions that I found here in stackoverflow and other websites:

  1. I run the ./gradlew clean and ./gradlew build and also tried ./gradlew clean build
  2. Uninstall the app in my device then flutter clean. I always do the flutter clean
  3. I uninstall everything, Android Studio and VSCode, and I upgrade my Flutter SDK to 2.5.0, and also did this.

but I am still facing the same problem. When I try flutter run -v, it works but then I can't update my app or do any changes in the app. Please help.

Here is my flutter doctor -v enter image description here

1 Answers

Sometimes the problem can be with ADB Server. Run this:

adb kill-server

Connect your device again and it should work.

Also

Settings>>Accounts and sync>>Delete Work Profile or any User Profile created on your phone.

Related