Sandhya Garg
Sandhya Garg

Reputation: 3

Multiple Projects with one package name in Android

I have a Android Project with an unique Package name. It is also available in Google Play Store. But now I need a huge change over the App. So what do I do to avoid collision in Play store. Also in my local machine do I need to change the Package name because I am using GCM for push notification as well.

Any solution for this or I have to use the old code and change all things .

Upvotes: 0

Views: 298

Answers (1)

Arpit Ratan
Arpit Ratan

Reputation: 3026

If you only want to change the package name then you can achieve it by adding more product flavors in your app.

You will need to make the following modifications in your build.gradle

 productFlavors {


        appWithOldPackageName{
            applicationId = "your.existing.package.name"

        }
        // This specifies the configuration of GHS android for huddle one devices
        appWithNewPackageName{
            applicationId = "your.new.package.name"
}
}

Upvotes: 1

Related Questions