Error retrieving device properties for ro.product.cpu.abi

使用flutter的時候出現這種錯誤。

部分報錯:

Exit code -1073740940 from C:\SDK\platform-tools\adb -s emulator-5554 shell -x logcat -v time -t l
這是platform-tools版本高引起的,進入目錄查看adb的版本

Android Debug Bridge version 1.0.40
Version 29.0.1-5303910
Installed as C:\software\SDK\platform-tools\adb.exe

解決

需要將platform-tools文件更換爲28.0.2版本的。

下載地址

Windows: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-windows.zip
macOS: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-darwin.zip
Linux: http://dl-ssl.google.com/android/repository/platform-tools_r28.0.2-linux.zip

下載完成後用該文件替換掉SDK中的platform-tools文件即可。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章