Search code examples
androiddebuggingbuildproduction

Non conflicting debug and prod version


I have my app published to the store and I keep it on my phone for reference. When pushing a debug build I need to uninstall first the store version which is quite annoying. Is there a way for me that the debug version of my app has a different name and doesn't conflict with the prod version so that I could have both of them of my phone?

Thanks


Solution

  • You can use Gradle flavors for this. See this post or this. Official Android Studio guide: https://developer.android.com/tools/building/configuring-gradle.html