How to have both Debug and Release apk on same device?

后端 未结 5 734
眼角桃花
眼角桃花 2021-02-12 03:46

While continuing to develop my application and test it on a real phone, I need to have the release version of it on the same phone, for demonstration purposes (

5条回答
  •  情歌与酒
    2021-02-12 04:40

    Use Android Studio because gradle make your life a lot easier - just use applicationIdSuffix

    android {  
       ...  
       buildTypes {  
         release {...}  
         debug {  
           applicationIdSuffix '.debug' 
         }  
       }  
    }
    

    For more go here.

提交回复
热议问题