After uninstall app on device flutter run not work

五迷三道 提交于 2020-06-28 07:30:25

问题


I'm using vs code for building my flutter app. But after uninstall debug app on my device, 'flutter run' command not working properly and stop in installing status. Please help me. Thanks.

Launching lib/main.dart on RNE L21 in debug mode...
Initializing gradle...                                      ۱۱٫۷s
Resolving dependencies...                                   ۱۴٫۹s
Gradle task 'assembleDebug'...
Gradle task 'assembleDebug'... Done                         ۱۰۱٫۷s
Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...                  ۶٫۱s

回答1:


Had the same problem, copied .apk file on device and installed it from there, after that debugger worked without any issues.




回答2:


Its seems like when you uninstall flutter application, though it is no longer available in phone It is not deleted properly(Only in flutter case). There fore to fix this. you can run adb and uninstall from package. Here is step by step procedure.
If you are in window:
Step 1. open your sdk path in command prompt
eg.
C:\Users\kharag\AppData\Local\Android\Sdk\platform-tools
Step 2. Search your app package name from flutter app (It will be in AndroidManifest.xml)
eg.
com.mycodingchannel.icttapp
Step 3. Now uninstall your app by running command

adb uninstall com.mycodingchannel.icttapp   

That all, Now run your app and it should work. Thanks



来源:https://stackoverflow.com/questions/53271576/after-uninstall-app-on-device-flutter-run-not-work

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!