본문 바로가기

Android Studio

[Android Studio] Failure [INSTALL_FAILED_TEST_ONLY]

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

 

ADB Install Fails With INSTALL_FAILED_TEST_ONLY

I am having issues installing an apk to my device. adb install <.apk> Using the above command returns the following: 5413 KB/s (99747 bytes in 0.017s) pkg: /data/local/tmp/AppClient.

stackoverflow.com