如何在Eclipse中更改Android项目的包名?

时间:2023-02-05 18:06:13

I have an Android project created in Eclipse. I want to modify the package name and application of the project. How do I do that in Eclipse?

我在Eclipse中创建了一个Android项目。我想修改这个项目的包名和应用。如何在Eclipse中实现这一点?

16 个解决方案

#1


129  

As usual, by pressing F2 on the package name, you can rename or change the package name, and also by right-clicking and then select Rename option, you can change or rename the package name.

像往常一样,通过在包名上按F2,您可以重命名或更改包名,也可以通过右键单击然后选择rename选项,您可以更改或重命名包名。

When you press F2, it will show you the dialog box as:

当你按F2时,它会显示对话框为:

如何在Eclipse中更改Android项目的包名?

In this dialog, don't forget to check the "Update references" checkbox because by making "check" to this check-box, it will make changes to all the references of the package which are referred by other components of project.

在这个对话框中,不要忘记选中“Update references”复选框,因为通过对这个复选框进行“check”,它将对项目的其他组件引用的包的所有引用进行更改。

#2


142  

This is a bug in the Eclipse Android tools.

这是Eclipse Android工具中的一个缺陷。

To fix: Right click on the project, go to Android tools -> Rename application package.

解决方法:右键单击项目,进入Android tools ->重命名应用程序包。

And also check AndroidManifest.xml if it updated correctly. In my case it didn't, and that should solve this problem.

同时检查AndroidManifest。如果更新正确,则使用xml。在我的例子中,它没有,这应该能解决这个问题。

#3


11  

None of these worked for me, they all introduced errors.

这些对我都不起作用,它们都引入了错误。

The following worked for me:

以下是我的工作经验:

  • Right click the project and select Android Tools >> Rename Application Package.
  • 右键单击项目,选择Android Tools >>重命名应用程序包。
  • Enter the new Package name
  • 输入新的包名
  • Accept all the automatic changes it wants to make
  • 接受它想要进行的所有自动更改
  • Say yes to update the launch configuration
  • 同意更新启动配置

#4


9  

One extremely important notice:

一个非常重要的通知:

NEVER use a direct package names as in something similar to passing a string value containing the package name. Use the method getPackageName(). This will make the renaming dynamic. Do whatever to reach the method getPackageName().

不要使用与传递包含包名的字符串值类似的直接包名。使用这种方法getPackageName()。这将使重命名动态。无论如何访问方法getPackageName()。

In Eclipse Juno, the correct way of renaming is:

在Eclipse Juno中,重命名的正确方法是:

  1. Go and edit the manifest.
  2. 去编辑清单。
  3. Remove every old package name in the manifest.
  4. 删除清单中的所有旧包名。
  5. Put instead of the old package name, the new package name in every location inside the manifest. You might have classes (Activities that is) that need direct package name references.
  6. 在清单内的每个位置使用新的包名,而不是旧的包名。您可能有需要直接包名引用的类(即活动)。
  7. Save the manifest.
  8. 保存清单。
  9. Then right click the package name inside the project.
  10. 然后右键单击项目中的包名。
  11. Select "Refactor".
  12. 选择“重构”。
  13. Select "Rename".
  14. 选择“重命名”。
  15. Type the new package name.
  16. 输入新的包名。
  17. Select "update references".
  18. 选择“更新引用”。
  19. Press OK and you're done and watch out also what should be done to replace the new name.
  20. 按下OK,就完成了,还要注意替换新名称应该做什么。
  21. Don't forget to also update the layout XML files with the new package name. You might have a custom View. Look for them.
  22. 不要忘记使用新的包名更新布局XML文件。您可能有一个自定义视图。寻找他们。

#5


7  

 Right click on your project name and select Android Tools , then click 
 Rename Application Package, then change your project name click OK and 
 click Finish.

如何在Eclipse中更改Android项目的包名?

如何在Eclipse中更改Android项目的包名?

如何在Eclipse中更改Android项目的包名?

#6


4  

To change the app name when in Android, go to res/values/strings.xml and change app_name to what you want.

要在Android中更改应用程序名称,请转到res/values/string。将app_name更改为您想要的。

#7


4  

Just right click on the project name and select Android tools and click Rename Application Package name and rename it. It's only for Android projects.

只需右键单击项目名称并选择Android tools,然后单击Rename Application Package name并对其进行重命名。它只适用于Android项目。

#8


2  

Press F2 and then rename it (or right click on the project and select Rename). It changes wherever that package is declared in your project. It's automatically renamed all over.

按F2,然后重命名它(或右键单击项目并选择rename)。它在项目中声明包的任何地方都发生变化。它会自动重命名。

#9


2  

Goto the Src folder of your Android project, and open the Java file.

进入Android项目的Src文件夹,打开Java文件。

Change the package OldName.android.widget to newName.android.widget.

改变包OldName.android。小部件来newName.android.widget。

It gives you an error like this

它会给你一个像这样的错误

The declared package "newName.android.widget" does not match the expected package "OLDName.android.widget.

newName.android宣布计划”。widget“与预期的包不匹配”olde.android.widget。

To fix this problem, select Move filename.Java to Newname.android.widget and delete the old package folder.

要解决这个问题,请选择Move文件名。Java Newname.android。小部件并删除旧的包文件夹。

Next step: Go to AndroidManifest.xml and change package="OldName.android.widget" to package="newName.android.widget".

下一步:进入AndroidManifest。xml和改变包= " OldName.android。小部件”包= " newName.android.widget”。

#10


2  

This worked perfectly for me (simple text replace):

这对我来说是完美的(简单的文本替换):

Go to search -> file

转到search ->文件

Containing text: old pakage name

包含文本:旧pakage名称

File name pattern: *

文件名称模式:*

Scope: workspace

范围:工作区

Press Replace

媒体取代

Replace: new package name

替换:新包名称

Now your project is full of errors.

现在你的项目充满了错误。

Click your package in project explorer and press F2 (rename).

在project explorer中单击您的包并按F2(重命名)。

Fill in the new package name and check all checkmarks.

填写新的软件包名称并检查所有的校验标记。

Press Preview.

按预览。

Click OK.

单击OK。

Wait for Eclipse to refresh. If there are still errors, clean all projects in the workspace:

等待Eclipse刷新。如果仍然有错误,请清理工作区中的所有项目:

Project -> Clean

项目- >清洁

#11


1  

OK here's what I had to do:

这就是我要做的:

Problem: I had a base project that I wanted to use as a starting point for several other projects that would be in the same workspace as the base project. The base project was already under GiT control in my own local repo. It was time to duplicate the base project, "MyBaseApp", to become the starting point for "MyKillerApp."

问题:我有一个基础项目,我想用它作为其他几个项目的起点,这些项目与基础项目相同。在我自己的本地repo中,基础项目已经在GiT控制之下。是时候复制基本项目“basemyapp”,成为“MyKillerApp”的起点。

Solution:

解决方案:

  1. I just duplicated the overall MyBaseApp directory as MyKillerApp and had the two directories side-by-side.
  2. 我将整个MyBaseApp目录复制为killmyerapp,并将两个目录并排放置。
  3. I edited file MyKillerApp->.project and changed the name from MyBaseApp to MyKillerApp. (This was necessary for step 3 to work.)
  4. 我编辑文件MyKillerApp - >。项目并将名字从MyBaseApp改为killmyerapp。(这对于第三步的工作是必要的。)
  5. I opened Eclipse and did a File->Import of MyKillerApp (I left out some details about how to use the Import menu, but click around, you'll figure it out.)
  6. 我打开Eclipse并做了一个文件——MyKillerApp的>导入(我省略了一些关于如何使用导入菜单的细节,但是点击一下,您就会明白了)。
  7. I right clicked on MyKillerApp in the package manager and chose Android Tools->Rename Application Package to MyKillerApp. I checked all the options for renaming except the last checkbox about non-java files.
  8. 我在包管理器中右键点击MyKillerApp,选择Android Tools->将应用程序包重命名为MyKillerApp。除了最后一个关于非java文件的复选框之外,我检查了所有重命名选项。
  9. I highlighted src->com.myname.MyBaseApp in the package manager and did an F2 to MyKillerApp. Then I did the same to a few classes including my opening activity class thing that goes into your AndroidManifest.xml file.
  10. 我强调了src - > com.myname。MyBaseApp在包管理器中,对MyKillerApp做了F2。然后我对一些类做了同样的事情,包括我的开放活动类的东西进入到你的AndroidManifest中。xml文件。
  11. I had to update a few function call names but the compiler pointed them out to me handily.
  12. 我必须更新一些函数调用名,但是编译器很方便地为我指出它们。

Thus I had a new project derived from a base project with no nomenclature left over from the base project and it was in its own local GiT repo.

因此,我有一个从基础项目派生出来的新项目,该项目没有从基础项目遗留下来的名称,并且它是在本地GiT repo中。

#12


1  

Following worked for me in eclipse:

在eclipse中为我工作的如下:

Go to AndroidManifest, search and replace old package name with new one and update everything when saving. Go to your root project package then press F2, write new name, and check Update References and Rename subpackages check boxes. After this everything was red in project (complaining about R import for every java file) because it wasn't changing closing tag of my custom view-s in layout xmls. After I changed these manually, everything was back to normal. That is it.

进入AndroidManifest,搜索并替换旧的包名为新的,保存时更新所有的东西。转到根项目包,然后按F2,写新名称,检查更新引用和重命名子包复选框。在此之后,项目中的一切都变红了(抱怨每个java文件的R导入),因为它没有改变我在布局xml中的自定义视图-s的结束标记。在我手动更改这些之后,一切都恢复了正常。就是这样。

#13


1  

None of this worked for me until I combined the two answers mentioned in this post.

这些对我都不起作用,直到我把这篇文章中提到的两个答案结合起来。

Step 1: Right click on the project -> Select Android Tools -> Rename application Package. (This will change all the files in the gen folder and in AndroidManifest but will not change the package name in the src folder so I followed Step 2)

步骤1:右键单击项目->选择Android Tools ->重命名应用程序包。(这将更改gen文件夹和AndroidManifest中的所有文件,但不会更改src文件夹中的包名,因此我遵循了步骤2)

Step 2: Inside src folder Right Click your package name -> Refactor -> Rename -> Enter the new name that you entered in Step 1.

步骤2:在src文件夹中右键单击您的包名—>重构—>重命名—>输入您在步骤1中输入的新名称。

Just to make sure Check AndroidManifest if there is still the old package name and replace with the new one (in my case inside the "uses-permission" tag).

只是为了确保检查AndroidManifest,如果仍然有旧的包名并替换为新的包名(在我的例子中是在“use -permission”标签中)。

Then close the Eclipse and Reopen it. Uninstall the app from your device and install it again and everything should be working fine.

然后关闭Eclipse并重新打开它。从你的设备上卸载这个应用程序,再安装一次,一切都会正常运行。

Hope this helps and saves your time.

希望这能帮助你节省时间。

#14


0  

Renaming an Application- The Complete Guide

重命名应用程序-完整的指南

**A) for changing Just the application name
   (App name which is displayed below icon)
    in the Manifest.xml file, in <application tag, 
    android:label="YourAppName"
    then do the same in All the <activity Tags        

  B) For changing EVERYTHING 
   (folder names, Package names, Refrences,app name, etc.)
  *1) Renaming package names in gen folder and manifest.xml
      Right Click on Your project
      Android tools- Rename Application Package

  *2) Renaming package names in src folder 
      Expand src folder, Click on package (Single click) 
      Press Alt+Shift+R
      Check Update references and Rename subpackages      
   3) Renaming the app's main Folder (Optional)
      click on the application's folder (Single click)
      then Press Alt+Shift+R 

   4) Renaming application name- Refer "A)"**

#15


0  

Just get Far Manager and search through for the old name. Then manually (in Far Manager) replace everywhere. Sadly, this is the only method that works in 100% of the possible cases.

只要找到远距管理器,搜索旧的名字。然后手动(在远端管理器中)替换各处。遗憾的是,在所有可能的情况下,这是唯一有效的方法。

#16


0  

I had big trouble with this too.

我也遇到了大麻烦。

I renamed the project and the package via refactoring, but it rendered the app useless. I renamed it back to the original and used the Android tools to rename the package and this worked, but my package folder and classes had the old name.

我通过重构重命名了项目和包,但它使应用程序变得无用。我将它重命名为原来的,并使用Android工具重命名包,这是可行的,但是我的包文件夹和类有旧名。

I then refactored the package folder. Now the app wouldn't run. My manifest was a mess. It doubled up my launcher name for example, com.ronguilmet.app/com.ronguilmet.com.class. I fixed that, and I had to manually edit all activities.

然后重构包文件夹。现在应用程序不能运行了。我的清单一团糟。它将我的启动名加倍,例如com.ronguilmet.app/com.ronguilmet.com.class。我修正了这个问题,我必须手动编辑所有的活动。

#1


129  

As usual, by pressing F2 on the package name, you can rename or change the package name, and also by right-clicking and then select Rename option, you can change or rename the package name.

像往常一样,通过在包名上按F2,您可以重命名或更改包名,也可以通过右键单击然后选择rename选项,您可以更改或重命名包名。

When you press F2, it will show you the dialog box as:

当你按F2时,它会显示对话框为:

如何在Eclipse中更改Android项目的包名?

In this dialog, don't forget to check the "Update references" checkbox because by making "check" to this check-box, it will make changes to all the references of the package which are referred by other components of project.

在这个对话框中,不要忘记选中“Update references”复选框,因为通过对这个复选框进行“check”,它将对项目的其他组件引用的包的所有引用进行更改。

#2


142  

This is a bug in the Eclipse Android tools.

这是Eclipse Android工具中的一个缺陷。

To fix: Right click on the project, go to Android tools -> Rename application package.

解决方法:右键单击项目,进入Android tools ->重命名应用程序包。

And also check AndroidManifest.xml if it updated correctly. In my case it didn't, and that should solve this problem.

同时检查AndroidManifest。如果更新正确,则使用xml。在我的例子中,它没有,这应该能解决这个问题。

#3


11  

None of these worked for me, they all introduced errors.

这些对我都不起作用,它们都引入了错误。

The following worked for me:

以下是我的工作经验:

  • Right click the project and select Android Tools >> Rename Application Package.
  • 右键单击项目,选择Android Tools >>重命名应用程序包。
  • Enter the new Package name
  • 输入新的包名
  • Accept all the automatic changes it wants to make
  • 接受它想要进行的所有自动更改
  • Say yes to update the launch configuration
  • 同意更新启动配置

#4


9  

One extremely important notice:

一个非常重要的通知:

NEVER use a direct package names as in something similar to passing a string value containing the package name. Use the method getPackageName(). This will make the renaming dynamic. Do whatever to reach the method getPackageName().

不要使用与传递包含包名的字符串值类似的直接包名。使用这种方法getPackageName()。这将使重命名动态。无论如何访问方法getPackageName()。

In Eclipse Juno, the correct way of renaming is:

在Eclipse Juno中,重命名的正确方法是:

  1. Go and edit the manifest.
  2. 去编辑清单。
  3. Remove every old package name in the manifest.
  4. 删除清单中的所有旧包名。
  5. Put instead of the old package name, the new package name in every location inside the manifest. You might have classes (Activities that is) that need direct package name references.
  6. 在清单内的每个位置使用新的包名,而不是旧的包名。您可能有需要直接包名引用的类(即活动)。
  7. Save the manifest.
  8. 保存清单。
  9. Then right click the package name inside the project.
  10. 然后右键单击项目中的包名。
  11. Select "Refactor".
  12. 选择“重构”。
  13. Select "Rename".
  14. 选择“重命名”。
  15. Type the new package name.
  16. 输入新的包名。
  17. Select "update references".
  18. 选择“更新引用”。
  19. Press OK and you're done and watch out also what should be done to replace the new name.
  20. 按下OK,就完成了,还要注意替换新名称应该做什么。
  21. Don't forget to also update the layout XML files with the new package name. You might have a custom View. Look for them.
  22. 不要忘记使用新的包名更新布局XML文件。您可能有一个自定义视图。寻找他们。

#5


7  

 Right click on your project name and select Android Tools , then click 
 Rename Application Package, then change your project name click OK and 
 click Finish.

如何在Eclipse中更改Android项目的包名?

如何在Eclipse中更改Android项目的包名?

如何在Eclipse中更改Android项目的包名?

#6


4  

To change the app name when in Android, go to res/values/strings.xml and change app_name to what you want.

要在Android中更改应用程序名称,请转到res/values/string。将app_name更改为您想要的。

#7


4  

Just right click on the project name and select Android tools and click Rename Application Package name and rename it. It's only for Android projects.

只需右键单击项目名称并选择Android tools,然后单击Rename Application Package name并对其进行重命名。它只适用于Android项目。

#8


2  

Press F2 and then rename it (or right click on the project and select Rename). It changes wherever that package is declared in your project. It's automatically renamed all over.

按F2,然后重命名它(或右键单击项目并选择rename)。它在项目中声明包的任何地方都发生变化。它会自动重命名。

#9


2  

Goto the Src folder of your Android project, and open the Java file.

进入Android项目的Src文件夹,打开Java文件。

Change the package OldName.android.widget to newName.android.widget.

改变包OldName.android。小部件来newName.android.widget。

It gives you an error like this

它会给你一个像这样的错误

The declared package "newName.android.widget" does not match the expected package "OLDName.android.widget.

newName.android宣布计划”。widget“与预期的包不匹配”olde.android.widget。

To fix this problem, select Move filename.Java to Newname.android.widget and delete the old package folder.

要解决这个问题,请选择Move文件名。Java Newname.android。小部件并删除旧的包文件夹。

Next step: Go to AndroidManifest.xml and change package="OldName.android.widget" to package="newName.android.widget".

下一步:进入AndroidManifest。xml和改变包= " OldName.android。小部件”包= " newName.android.widget”。

#10


2  

This worked perfectly for me (simple text replace):

这对我来说是完美的(简单的文本替换):

Go to search -> file

转到search ->文件

Containing text: old pakage name

包含文本:旧pakage名称

File name pattern: *

文件名称模式:*

Scope: workspace

范围:工作区

Press Replace

媒体取代

Replace: new package name

替换:新包名称

Now your project is full of errors.

现在你的项目充满了错误。

Click your package in project explorer and press F2 (rename).

在project explorer中单击您的包并按F2(重命名)。

Fill in the new package name and check all checkmarks.

填写新的软件包名称并检查所有的校验标记。

Press Preview.

按预览。

Click OK.

单击OK。

Wait for Eclipse to refresh. If there are still errors, clean all projects in the workspace:

等待Eclipse刷新。如果仍然有错误,请清理工作区中的所有项目:

Project -> Clean

项目- >清洁

#11


1  

OK here's what I had to do:

这就是我要做的:

Problem: I had a base project that I wanted to use as a starting point for several other projects that would be in the same workspace as the base project. The base project was already under GiT control in my own local repo. It was time to duplicate the base project, "MyBaseApp", to become the starting point for "MyKillerApp."

问题:我有一个基础项目,我想用它作为其他几个项目的起点,这些项目与基础项目相同。在我自己的本地repo中,基础项目已经在GiT控制之下。是时候复制基本项目“basemyapp”,成为“MyKillerApp”的起点。

Solution:

解决方案:

  1. I just duplicated the overall MyBaseApp directory as MyKillerApp and had the two directories side-by-side.
  2. 我将整个MyBaseApp目录复制为killmyerapp,并将两个目录并排放置。
  3. I edited file MyKillerApp->.project and changed the name from MyBaseApp to MyKillerApp. (This was necessary for step 3 to work.)
  4. 我编辑文件MyKillerApp - >。项目并将名字从MyBaseApp改为killmyerapp。(这对于第三步的工作是必要的。)
  5. I opened Eclipse and did a File->Import of MyKillerApp (I left out some details about how to use the Import menu, but click around, you'll figure it out.)
  6. 我打开Eclipse并做了一个文件——MyKillerApp的>导入(我省略了一些关于如何使用导入菜单的细节,但是点击一下,您就会明白了)。
  7. I right clicked on MyKillerApp in the package manager and chose Android Tools->Rename Application Package to MyKillerApp. I checked all the options for renaming except the last checkbox about non-java files.
  8. 我在包管理器中右键点击MyKillerApp,选择Android Tools->将应用程序包重命名为MyKillerApp。除了最后一个关于非java文件的复选框之外,我检查了所有重命名选项。
  9. I highlighted src->com.myname.MyBaseApp in the package manager and did an F2 to MyKillerApp. Then I did the same to a few classes including my opening activity class thing that goes into your AndroidManifest.xml file.
  10. 我强调了src - > com.myname。MyBaseApp在包管理器中,对MyKillerApp做了F2。然后我对一些类做了同样的事情,包括我的开放活动类的东西进入到你的AndroidManifest中。xml文件。
  11. I had to update a few function call names but the compiler pointed them out to me handily.
  12. 我必须更新一些函数调用名,但是编译器很方便地为我指出它们。

Thus I had a new project derived from a base project with no nomenclature left over from the base project and it was in its own local GiT repo.

因此,我有一个从基础项目派生出来的新项目,该项目没有从基础项目遗留下来的名称,并且它是在本地GiT repo中。

#12


1  

Following worked for me in eclipse:

在eclipse中为我工作的如下:

Go to AndroidManifest, search and replace old package name with new one and update everything when saving. Go to your root project package then press F2, write new name, and check Update References and Rename subpackages check boxes. After this everything was red in project (complaining about R import for every java file) because it wasn't changing closing tag of my custom view-s in layout xmls. After I changed these manually, everything was back to normal. That is it.

进入AndroidManifest,搜索并替换旧的包名为新的,保存时更新所有的东西。转到根项目包,然后按F2,写新名称,检查更新引用和重命名子包复选框。在此之后,项目中的一切都变红了(抱怨每个java文件的R导入),因为它没有改变我在布局xml中的自定义视图-s的结束标记。在我手动更改这些之后,一切都恢复了正常。就是这样。

#13


1  

None of this worked for me until I combined the two answers mentioned in this post.

这些对我都不起作用,直到我把这篇文章中提到的两个答案结合起来。

Step 1: Right click on the project -> Select Android Tools -> Rename application Package. (This will change all the files in the gen folder and in AndroidManifest but will not change the package name in the src folder so I followed Step 2)

步骤1:右键单击项目->选择Android Tools ->重命名应用程序包。(这将更改gen文件夹和AndroidManifest中的所有文件,但不会更改src文件夹中的包名,因此我遵循了步骤2)

Step 2: Inside src folder Right Click your package name -> Refactor -> Rename -> Enter the new name that you entered in Step 1.

步骤2:在src文件夹中右键单击您的包名—>重构—>重命名—>输入您在步骤1中输入的新名称。

Just to make sure Check AndroidManifest if there is still the old package name and replace with the new one (in my case inside the "uses-permission" tag).

只是为了确保检查AndroidManifest,如果仍然有旧的包名并替换为新的包名(在我的例子中是在“use -permission”标签中)。

Then close the Eclipse and Reopen it. Uninstall the app from your device and install it again and everything should be working fine.

然后关闭Eclipse并重新打开它。从你的设备上卸载这个应用程序,再安装一次,一切都会正常运行。

Hope this helps and saves your time.

希望这能帮助你节省时间。

#14


0  

Renaming an Application- The Complete Guide

重命名应用程序-完整的指南

**A) for changing Just the application name
   (App name which is displayed below icon)
    in the Manifest.xml file, in <application tag, 
    android:label="YourAppName"
    then do the same in All the <activity Tags        

  B) For changing EVERYTHING 
   (folder names, Package names, Refrences,app name, etc.)
  *1) Renaming package names in gen folder and manifest.xml
      Right Click on Your project
      Android tools- Rename Application Package

  *2) Renaming package names in src folder 
      Expand src folder, Click on package (Single click) 
      Press Alt+Shift+R
      Check Update references and Rename subpackages      
   3) Renaming the app's main Folder (Optional)
      click on the application's folder (Single click)
      then Press Alt+Shift+R 

   4) Renaming application name- Refer "A)"**

#15


0  

Just get Far Manager and search through for the old name. Then manually (in Far Manager) replace everywhere. Sadly, this is the only method that works in 100% of the possible cases.

只要找到远距管理器,搜索旧的名字。然后手动(在远端管理器中)替换各处。遗憾的是,在所有可能的情况下,这是唯一有效的方法。

#16


0  

I had big trouble with this too.

我也遇到了大麻烦。

I renamed the project and the package via refactoring, but it rendered the app useless. I renamed it back to the original and used the Android tools to rename the package and this worked, but my package folder and classes had the old name.

我通过重构重命名了项目和包,但它使应用程序变得无用。我将它重命名为原来的,并使用Android工具重命名包,这是可行的,但是我的包文件夹和类有旧名。

I then refactored the package folder. Now the app wouldn't run. My manifest was a mess. It doubled up my launcher name for example, com.ronguilmet.app/com.ronguilmet.com.class. I fixed that, and I had to manually edit all activities.

然后重构包文件夹。现在应用程序不能运行了。我的清单一团糟。它将我的启动名加倍,例如com.ronguilmet.app/com.ronguilmet.com.class。我修正了这个问题,我必须手动编辑所有的活动。