[英]Restarting Android application that has been uploaded to Google Play Store
I created an Android application a few months back and uploaded it to the Google Play Store. 几个月前,我创建了一个Android应用程序,并将其上传到Google Play商店。 Over the past few months I've had a lot of practice with Java and Android development;
在过去的几个月中,我在Java和Android开发方面进行了很多练习。 naturally, I decided to update my Android application with my new found knowledge.
自然,我决定使用新发现的知识来更新Android应用程序。 After exploration of my Android code I was horrified by how unorganized and sloppy my entire application was.
探索了我的Android代码之后,我对整个应用程序的混乱程度感到震惊。 I then decided it would be best for me to simply start the application from scratch - Create a new Android Studio project and develop a brand new app.
然后,我决定最好从头开始启动应用程序-创建一个新的Android Studio项目并开发一个全新的应用程序。 Then it occurred to me the problems that might arise when signing the application and re-uploading it to the Google Play Store.
然后我想到了对应用程序进行签名并将其重新上传到Google Play商店时可能出现的问题。
Can someone explain to me how I should go about re-creating an Android application I have already uploaded to the Play Store? 有人可以向我解释如何重新创建已经上传到Play商店的Android应用程序吗? Is this allowed or will I need to work with the current code I have?
这是允许的,还是我需要使用当前的代码?
You can re-write the whole application. 您可以重新编写整个应用程序。 but if you want to update the application then you have to keep the same Package name which you use for the first time while uploading on play store.
但是如果要更新应用程序,则必须保留在Play商店上载时第一次使用的包名称。 and also you need to change the version and version code.
并且您还需要更改版本和版本代码。 and in the end when you build signed APK you have to use the old Key store file which you use for the first time for building signed APK
最后,当您构建签名的APK时,您必须使用第一次用于构建签名的APK的旧密钥存储文件
if you want to upload newly created app with same package then do this in your already uploaded apk : 如果您想上传具有相同软件包的新创建的应用,请在已经上传的apk中执行以下操作:
unpublish it & rename its package name from google play console. 取消发布并从Google Play控制台重命名其包名称。
Now you can use same package name for your new app. 现在,您可以为新应用使用相同的程序包名称。 Else you can change package name by setting application id in your build.gradle file you can set package name by module settings > select app > flavours tab > application id Now you can decide how you want upload your app.
另外,您可以通过在build.gradle文件中设置应用程序ID来更改程序包名称,还可以通过模块设置>选择应用程序>风味选项卡>应用程序ID来设置程序包名称。现在,您可以决定如何上载应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.