adb install 명령어를 이용해 apk를 설치하자 뜨는 Failure [INSTALL_FAILED_TEST_ONLY] 메시지
구글링을 통해 나온 해결방법들은 3가지 정도 있습니다
1. Manifest에서 application에 android:testOnly="false" 추가
2. gradle.properties에 android.injected.testOnly=false 추가
3. 'adb install -t [apk파일]' -t 옵션 주기
해결방법은 이렇고 저는 안드로이드 스튜디오에서 Run을 통해 생성된 apk를 설치하려고하니 오류가 떴습니다.
StackOverFlow의 답변 중
None of the previous post solve my issue. Here is what's happening with me:
I normally load the app from android studio by clicking on the "Run" button. When you do this, android would create an app that's good for debug but not for install. If you try to install using:
https://stackoverflow.com/questions/25274296/adb-install-fails-with-install-failed-test-only
'Android Studio' 카테고리의 다른 글
[Android Studio] Auto Import 활성화 (0) | 2020.09.01 |
---|---|
[Android Studio] adb 무선 연결(adb tcpip & adb connect) (0) | 2020.08.28 |
[Android Studio] sdk 버전 별 점유율 확인 (0) | 2020.05.14 |
[Android Studio] 불필요한 import 정리 (0) | 2020.04.02 |
[Android Studio] 줄, 선택영역 복사 후 바로 붙여넣기 단축키 (0) | 2020.03.13 |