Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install /Users/.../flutter-ap/app.apk:
adb uninstall failed: ProcessException: Process exited abnormally:
adb: device '~' not found
Command: /Users/.../platform-tools/adb -s uninstall com.~
Error: Uninstalling old version failed.
Error launching application on ~
스마트폰으로 애뮬레이터를 돌릴려고 하자 이런 에러가 떴다.
구글링 끝에 이 블로그를 발견했다.
먼저 , https://developer.android.com/studio/releases/platform-tools 이 사이트에서 platform-tools를 설치하고
platform-tools가 설치된 디렉터리로 이동한다.
앞의 블로그 처럼 ./adb shell을 입력하고 settings put global package_verifier_enable 0을 입력해준다. (shell 나가는 명령어는 ctrl+D이다)
./adb shell
$ settings put global package_verifier_enable 0
./adb install
./adb install을 해주고 나면 이제 잘 돌아가는 것을 확인할 수 있다.
이래도 안된다면 스마트폰의 설정에서 개발자 모드와 usb 디버깅을 허용했는지 체크하기 바란다.