I'm trying to rename my app package name in android studio because when I try to upload to google play it says prefix "com.example" is reserved. So I've been to manifest file - double click in "example" and then refractor this, changed to "myapps" and changed it in the whole project. Now I try to upload it and I still get the same error message. Anybody knows how to fix this error ? Many thanks in advance
我正在尝试在android studio中重命名我的应用程序包名称,因为当我尝试上传到谷歌播放时,它说前缀“com.example”是保留的。所以我一直在显示文件 - 双击“示例”然后折射它,更改为“myapps”并在整个项目中更改它。现在我尝试上传它,我仍然得到相同的错误消息。有谁知道如何解决这个错误?提前谢谢了
1 个解决方案
#1
0
It seems simple. There are many ways from which one is this:
看起来很简单。有很多方法可以解决这个问题:
After you change the name manually in the AndroidManifest.xml
, you click on the R.java
class and then press F6.
在AndroidManifest.xml中手动更改名称后,单击R.java类,然后按F6。
R.java
resides in the app/build/generated/source/r/debug/(packagename)
directory. It contains resource IDs for the things you use in the android app. Check this question for more information.
R.java驻留在app / build / generated / source / r / debug /(packagename)目录中。它包含您在Android应用程序中使用的内容的资源ID。查看此问题以获取更多信息。
Also, Amir is right, try to use a more unique package name. Example: com.(familyname) or your company domain.
此外,Amir是对的,尝试使用更独特的包名。示例:com。(familyname)或您的公司域。
For further information, you can visit this question.
有关详细信息,您可以访问此问题。
#1
0
It seems simple. There are many ways from which one is this:
看起来很简单。有很多方法可以解决这个问题:
After you change the name manually in the AndroidManifest.xml
, you click on the R.java
class and then press F6.
在AndroidManifest.xml中手动更改名称后,单击R.java类,然后按F6。
R.java
resides in the app/build/generated/source/r/debug/(packagename)
directory. It contains resource IDs for the things you use in the android app. Check this question for more information.
R.java驻留在app / build / generated / source / r / debug /(packagename)目录中。它包含您在Android应用程序中使用的内容的资源ID。查看此问题以获取更多信息。
Also, Amir is right, try to use a more unique package name. Example: com.(familyname) or your company domain.
此外,Amir是对的,尝试使用更独特的包名。示例:com。(familyname)或您的公司域。
For further information, you can visit this question.
有关详细信息,您可以访问此问题。