当前位置: 首页 > 工具软件 > flutter-im > 使用案例 >

flutter卡在Installing build\app\outputs\flutter-apk\app.apk…

岳高明
2023-12-01

flutter卡在Installing build\app\outputs\flutter-apk\app.apk…

H:\jjkj\flutter\f2>flutter run --no-sound-null-safety
Launching lib\main.dart on CDY AN00 in debug mode…
Running Gradle task ‘assembleDebug’…
Running Gradle task ‘assembleDebug’… Done 6.8s
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk… 3.4s

卡住了,重启手机都不行

解决:在sdk目录里F:\tools\sdk\platform-tools 打开控制台
然后输入

  1. adb kill-server

  2. taskkill /f /im adb.exe

  3. adb uninstall com.example.f2.f2

如下:

C:\Users\Administrator>adb kill-server

C:\Users\Administrator>taskkill /f /im adb.exe
成功: 已终止进程 “adb.exe”,其 PID 为 3672。

C:\Users\Administrator>adb uninstall com.example.f2.f2
Success

C:\Users\Administrator>

然后安装:

H:\jjkj\flutter\f2>flutter run --no-sound-null-safety
Launching lib\main.dart on CDY AN00 in debug mode…
Running Gradle task ‘assembleDebug’…
Running Gradle task ‘assembleDebug’… Done 2,856ms
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk… 3.7s
Syncing files to device CDY AN00… 164ms

成功了

 类似资料: