'App not Installed' Error on Android

前端 未结 30 1935
说谎
说谎 2020-11-22 06:03

I have a program working in the Android Emulator. Every now and again I have been creating a signed .apk and exporting it to my HTC Desire to test. It has all been fine.

30条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 06:41

    In my case it was because I was using the alpha version of support library 28. Looks like Google marks these pre release versions as testOnly. If you really want to release like this (for instance, you want to push an internal beta like I did), you can add this line to your gradle.properties file:

    android.injected.testOnly=false
    

提交回复
热议问题