gpt4 book ai didi

android-studio - 当我在设备上运行Flutter App时出现错误

转载 作者:行者123 更新时间:2023-12-03 04:38:24 25 4
gpt4 key购买 nike

我是Flutter的新用户,我想运行我的第一个应用程序,但是出现了这个问题

Launching lib\main.dart on HUAWEI P7 L10 in debug mode...
Running Gradle task 'assembleDebug'...

√ Built build\app\outputs\apk\debug\app-debug.apk.

Installing build\app\outputs\apk\app.apk...

Error: ADB exited with exit code -1

Performing Push Install

adb: error: failed to read copy response

D:\Mobile\AndroidStudioProjects\i_am_rich\build\app\outputs\apk\app.apk: 1 file pushed, 0 skipped. 5.3 MB/s (45878300 bytes in 8.283s)

adb: error: failed to read copy response

Error launching application on HUAWEI P7 L10.
当我运行 flutter doctor时,我没有遇到任何问题 No issues found
D:\Mobile\AndroidStudioProjects\i_am_rich>flutter doctor                                                                                          
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [Version 10.0.14393], locale ru-RU)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.48.0)
[√] Connected device (1 available)

• No issues found!
如果您知道的话,请帮助我。谢谢。

最佳答案

运行flutter upgrade应该可以解决此问题

关于android-studio - 当我在设备上运行Flutter App时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63690596/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com