when I run
$ flutter run
I\'m getting a prompt on my mobile device asking if I want to install the app on my device. I give yes, then nothing
I hit this problem when I commented all my bitmaps in launch_background.xml
:
<!-- You can insert your own image assets here -->
<item>
<!--
<bitmap
android:gravity="center"
android:src="@mipmap/launch_320x480" />
<bitmap
android:gravity="center"
android:src="@mipmap/launch_480x320" />
<bitmap
android:gravity="center"
android:src="@mipmap/launch_480x800" />
<bitmap
android:gravity="center"
android:src="@mipmap/launch_800x480" />
<bitmap
android:gravity="center"
android:src="@mipmap/launch_720x1280" />
<bitmap
android:gravity="center"
android:src="@mipmap/launch_1280x720" />
<bitmap
android:gravity="center"
android:src="@mipmap/launch_1280x1920" />
<bitmap
android:gravity="center"
android:src="@mipmap/launch_1920x1280" />
-->
</item>
I uncommented the bitmaps to get the Flutter build to run. I'm on:
Flutter (Channel beta, v1.0.0, on Mac OS X 10.13.6 17G4015, locale en-US)
I had this problem after I changed the package name. I fixed it by using this guide
In my case I did not have the java files as described in the article but did need to change the kotlin path similarly to the java path described.
For anybody reading this, I solved this by doing the following:
flutter doctor --android-licenses
and make sure you
accept all the licenses.Hope this helps :).
I fixed it:
1. Power off & Close Android Emulator
2. Reopen Android Studio & go to Tools/ AVD Manager
3. In Virtual Devices List, click Dropdown icon > select 'Wipe Data'. Then click 'Launch this AVD...'
4. Waiting for VD open, then click Run in Android Studio
good luck
Running flutter clean
solved this issue for me using an emulator.
I wiped the emulator data, deleted my emulator, and created a new one, none of that worked. flutter clean
worked though.
Try this