android tutorial - Specifying different application IDs in Android | Developer android - android app development - android studio - android app developement
Specifying different application IDs for build types and product flavors
- You can specify different application IDs or package names for each buildType or productFlavor using the applicationIdSuffix configuration attribute:
Example of suffixing the applicationId for each buildType:
Our resulting applicationIds would now be:
- com.package.android for release
- com.package.android.dev for development
- com.package.android.qa for testing
This can be done for productFlavors as well:
The resulting applicationIds would be:
- com.package.android.free for the free flavor
- com.package.android.paid for the paid flavor