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

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


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

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

For more go here.


The only way I know is to change the package name in your applications manifest file. Eclipse should handle all the code renaming for you.


Could you put all your code in a Library Project and then just have two normal projects,that have different package names and just include the library project in both?

This should keep all your code in one place.The normal projects would most likely only need a valid manifest file that points to theactivities in the library project.