AndroidStudio调试

123 阅读1分钟

Installation failed due to: 'device offline'

02/21 09:46:21: Launching 'app' on Pixel 2 (Edited) API 33.
Installation did not succeed.
The application could not be installed.

List of apks:
[0] '/Users/wangpanpan/Desktop/myflutter/douyin/first/build/app/outputs/apk/debug/app-debug.apk'
Installation failed due to: 'device offline'
Retry
Failed to launch an application on all devices

解决方案一

File -> Invalidate Caches -> Clear file system .....

image.png

解决方案二

image.png