简体   繁体   English

android-包重命名后的新应用版本

[英]android - new app version after package rename

I have retroactively renamed my packages in an Android Studio project. 我已在Android Studio项目中追溯地重命名了我的软件包。 If I now build and install my app on a device, a second app is created in addition to the already existing app with the old package names. 如果我现在在设备上构建并安装我的应用程序,则除了具有旧软件包名称的现有应用程序之外,还会创建第二个应用程序。 I have already generated some data on the first version of the app, that I would like to keep. 我已经保留了该应用程序第一版的一些数据。 Is there a way to just update the first version as usual instead of creating this alternate version? 有没有办法像往常一样仅更新第一个版本,而不是创建此备用版本?

Thanks 谢谢

是的,您只需要在gradle中更新版本代码和版本名称,因此第一个版本将被更新,并且您将保留数据

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在android中更新新版本后重新启动应用程序 - Restart App after updating a new version in android 包重命名后,app将无法安装 - app won't install after package rename 新版本的android应用 - New version of android app 在Android中检索应用包和版本 - Retrieve the app package and version in Android android应用升级到新版本后如何保留旧数据库? - How to retain the older database after the android app is upgraded to new version? 从服务器下载Android应用程序后不会升级为新版本 - Android app does not upgrade for a new version after download it from the server Gettting“未安装Android应用程序。 在安装新版本时,软件包与现有软件包的名称相同 - Gettting “Android App Not Installed. The package conflicts with an existing package by the same name” when installing new version 包版本和应用程序版本在android中是不同的东西 - Is package version and app version are different things in android 如何将包名称从“ com.example.new.app”重命名为“ com.example.app”而没有R文件Android Studio中出现错误 - How to Rename the package name from “com.example.new.app” to “com.example.app” without R file Error in Android Studio 如何更改程序包名称android studio以重新上传为新应用(不是新版本)? - How to change package name android studio for reupload as a new app (not new version)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM