简体   繁体   中英

Rename package name in android using commands

I want to change package name of an android project/apk so that i can have different version's of an application.

For this i have gone through some stackoverflow' questions for this { link1 , link2 }. My project is build with gradle. In these stack's answer's i was not cleared where to change in [roject's build.xml or sdk's build.xml.

Is this possible to change package name with "–rename-manifest-package" and release application on google play store? or i need to do somthing else.

For different version, change version on gradle file and make another apk then release it on google plays store. There is an option on google store it should be release new version or something like that.

However, it is not possible to change current application's package name which is on google play store.

If you cannot do, I'll try to add step by step guide.

EDIT:

At first you need to change your app's version in here which is build.gradle(Module: app) 在此处输入图片说明

and then you need to create new signed apk since you want to publish it;

After creating signed apk you need to access your developer account and click APK section first and then upload new version of your application.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM