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 ~
스마트폰으로 애뮬레이터를 돌릴려고 하자 이런 에러가 떴다.
[오류해결] adb install 시 adb: failed to install C:\android\Tools\base_repacking.apk: Failure [INSTALL_FAILED_VERIFICATION_
해당 오류는 구글에서 루팅 폰을 막기 위해 지정한 서비스의 apk 설치 정책 때문에 block 된 거라 shell 에서 아래 코드를 작성하면 해결됩니다. adb shell $ settings put global package_verifier_enable 0 다시 adb i
com24everyday.tistory.com
구글링 끝에 이 블로그를 발견했다.
먼저 , 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 디버깅을 허용했는지 체크하기 바란다.