[英]can't run flutter run command on real device
I want to run flutter run on real device but can't, even though before installing java and making release versions for other applications there was no problem.我想在真实设备上运行flutter但不能,即使在安装 java 并为其他应用程序制作发布版本之前也没有问题。 If the project is run on android emulator or flutter build apk there is no problem.
如果项目在 android 仿真器或flutter build apk上运行,则没有问题。 Below is the error message I get when running the flutter run command
以下是我在运行flutter 运行命令时收到的错误消息
ayub@192 md5creator % flutter run
ayub@192 md5creator % flutter 运行
Launching lib/main.dart on SM A325F in debug mode...
在调试模式下在 SM A325F 上启动 lib/main.dart...
Running Gradle task 'assembleDebug'... 37.2s
运行 Gradle 任务 'assembleDebug'... 37.2s
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
✓ 内置 build/app/outputs/flutter-apk/app-debug.apk。
- daemon not running;
守护进程没有运行; starting now at tcp:5037
从现在开始 tcp:5037
- daemon started successfully
守护进程成功启动
Installing build/app/outputs/flutter-apk/app.apk... 659ms
安装 build/app/outputs/flutter-apk/app.apk... 659ms
Error: ADB exited with exit code 1
错误:ADB 以退出代码 1 退出
Performing Streamed Install
执行流式安装
adb: failed to install /Users/ayub/Documents/flutter_projects/md5creator/build/app/outputs/flutter-apk/app.apk:
adb:无法安装 /Users/ayub/Documents/flutter_projects/md5creator/build/app/outputs/flutter-apk/app.apk:
Uninstalling old version...
正在卸载旧版本...
adb uninstall failed: ProcessException: Process exited abnormally:
adb卸载失败:ProcessException:进程异常退出:
- daemon not running;
守护进程没有运行; starting now at tcp:5037
从现在开始 tcp:5037
ADB server didn't ACK
ADB 服务器没有 ACK
Full server startup log: /var/folders/gq/r6xq634s0bg5ys8knzlk3ltw0000gn/T//adb.501.log
完整的服务器启动日志:/var/folders/gq/r6xq634s0bg5ys8knzlk3ltw0000gn/T//adb.501.log
Server had pid: 2203
服务器有pid:2203
--- adb starting (pid 2203) ---
--- adb 开始 (pid 2203) ---
adb I 08-12 17:00:14 2203 26552 main.cpp:63] Android Debug Bridge version 1.0.41
adb I 08-12 17:00:14 2203 26552 main.cpp:63] Android 调试桥版本 1.0.41
adb I 08-12 17:00:14 2203 26552 main.cpp:63] Version 33.0.2-8557947
adb I 08-12 17:00:14 2203 26552 main.cpp:63] 版本 33.0.2-8557947
adb I 08-12 17:00:14 2203 26552 main.cpp:63] Installed as /Users/ayub/Library/Android/sdk/platform-tools/adb
adb I 08-12 17:00:14 2203 26552 main.cpp:63] 安装为 /Users/ayub/Library/Android/sdk/platform-tools/adb
adb I 08-12 17:00:14 2203 26552 main.cpp:63]
亚行我 08-12 17:00:14 2203 26552 main.cpp:63]
adb I 08-12 17:00:14 2203 26562 usb_osx.cpp:316] reported max packet size for RR8R808KMLN is 512
adb I 08-12 17:00:14 2203 26562 usb_osx.cpp:316] 报告的 RR8R808KMLN 的最大数据包大小为 512
adb I 08-12 17:00:14 2203 26552 auth.cpp:417] adb_auth_init...
亚行我 08-12 17:00:14 2203 26552 auth.cpp:417] adb_auth_init ...
adb I 08-12 17:00:14 2203 26552 auth.cpp:152] loaded new key from '/Users/ayub/.android/adbkey' with fingerprint
adb I 08-12 17:00:14 2203 26552 auth.cpp:152] 使用指纹从“/Users/ayub/.android/adbkey”加载新密钥
BD70E3110DFE2023B4826351A71B08B2432B690E0643AC28
BD70E3110DFE2023B4826351A71B08B2432B690E0643AC28
adb I 08-12 17:00:14 2203 26588 transport.cpp:304] RR8R808KMLN: write thread spawning
adb I 08-12 17:00:14 2203 26588 transport.cpp:304] RR8R808KMLN:写线程产生
adb I 08-12 17:00:14 2203 26587 transport.cpp:332] RR8R808KMLN: read thread spawning
adb I 08-12 17:00:14 2203 26587 transport.cpp:332] RR8R808KMLN:读取线程生成
- failed to start daemon
无法启动守护进程
adb: cannot connect to daemon
adb:无法连接到守护进程
Command: /Users/ayub/Library/Android/sdk/platform-tools/adb -s RR8R808KMLN uninstall com.example.md5creator
命令:/Users/ayub/Library/Android/sdk/platform-tools/adb -s RR8R808KMLN卸载com.example.md5creator
Error: Uninstalling old version failed.
错误:卸载旧版本失败。
Error launching application on SM A325F.
在 SM A325F 上启动应用程序时出错。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.