How to Solve if Flutter Run Stuck at Installing APK??

· 3 min read
How to Solve if Flutter Run Stuck at Installing APK
How to Solve if Flutter Run Stuck at Installing APK

sometimes it may happen that when end-user builds release apk using command and when the user tries to install it in a device Flutter SDK stuck and it doesn’t proceed ahead so in this article we will go through How to Solve if Flutter Run Stuck at Installing APK.

How to Solve if Flutter Run Stuck at Installing APK ??

This happens when your logcat hangs up. It is a problem with our device, and not flutter or Android Studio. You might want to increase your buffer size.

Depending on the type of error the user getting you could take a look at the probable solution below:

  • For flutter hot reload problems that may be happening with your project
  • To do this, go into your device or emulator:
  • Settings > Developer options ,
  • Change the buffer size to a higher number.
  • Then run flutter run -v again

You can enter this in the terminal

flutter run

And then r to hot reload. You might have to Ctrl+C and n first

Error on installing APK
Error on installing APK

It’s slower than F5, but still works!

I believe the most important locations are as follows: Mac / iOS

  • build.gradle — search for “applicationId”

Android

  • [app_name]\android\app\src\debug\AndroidManifest.xml
  • [app_name]\android\app\src\main\AndroidManifest.xml
  • [app_name]\android\app\src\profile\AndroidManifest.xml

You can also try with a below code snippet

  • Open android\app\build.gradle and set a different application id to the app.
    defaultConfig {
      // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
      applicationId "com.othervalue.sbmicalc"
    }
  • Then remove the previous build:
    flutter clean
  • and run again:
    flutter run

Conclusion:

Thanks for Reading !!! Let us know if you have any doubts regarding Flutter development in the comments.

So in this article, we have been through how to solve if flutter run stuck at installing APK.

Don’t forget to check How to get .apk and .ipa files from Flutter?

Do let us know if you need any assistance with flutter development. !!! We would love to assist you.

FlutterAgency.com is our portal Platform dedicated to Flutter Technology and Flutter Developers. The portal is full of cool resources from Flutter like Flutter Widget GuideFlutter ProjectsCode libs and etc.

FlutterAgency.com is one of the most popular online portals dedicated to Flutter Technology and daily thousands of unique visitors come to this portal to enhance their knowledge of Flutter.

Leave a Reply