apkprovisionexception no outputs for the main artifact of variant : debug(해당 variant명)

안드로이드 스튜디오 3.6이상에서 발생하는 오류로 이에 대한 해결법을 stackover에서는 Run/Debug Configuration에서 Deploy옵션을 Nothing으로 바꾸는것을 추천한다. 그러나 이렇게 변경하는 경우 추가로 오류가 발생하는 경우가 생기는데 디버깅시 APK가 인스톨되지 않는것이다.

개발중인 앱을 삭제후 디버깅을 시켜주게 되면 APK를 설치하지 못하는 오류가 발생하게 되는데 이때에는 main launcher를 못찾는 현상이 발생한다. 이에 대한 해결법은 gradle버젼을 올려주는건데 안드로이드 스튜디오 버젼이 3.6인데 gradle이 너무 낮아 생기는 오류라고 한다. 이에 대한 이슈는 https://androidstudio.googleblog.com/2020/04/android-studio-40-beta-4-available.html

 

Android Studio 4.0 Beta 4 available

Android Studio 4.0 Beta 4 is now available in the Beta channel. If you have Android Studio set up to receive updates on the  Beta channel...

androidstudio.googleblog.com

해당 페이지의 Run카테고리에 보고되어 있고 안드로이드 4.0에서 수정된것으로 보인다.

안드로이드 4.0이 나올때까지는 스튜디오를 3.5에서 사용하거나 gradle버젼을 올려 상요해주면 된다.

+ Recent posts