第一次尝试Flutter开发,发现Android Studio开发Flutter工程时即使插入了真机也提示no devices:
这并非是adb找不到设备:
1 2 3 4 5 6 |
E:\AndroidSDK\platform-tools>adb devices -l List of devices attached 84B7N16******00187 device product:angler model:Nexus_6P device:angler transport_id:2 E:\AndroidSDK\platform-tools> |
解决方式是在Flutter的bin目录下运行:
1 2 3 4 5 6 |
H:\flutter_windows_v1.12.13+hotfix.8-stable\flutter\bin>flutter config --android-sdk E:\AndroidSDK Setting "android-sdk" value to "E:\AndroidSDK". You may need to restart any open editors for them to read new settings. H:\flutter_windows_v1.12.13+hotfix.8-stable\flutter\bin> |
设置Android SDK的路径。
转载时请保留出处,违法转载追究到底:进城务工人员小梅 » Android Studio开发Flutter工程时插入真机也提示no devices的问题