0

这里有谁有 2 个相互覆盖的 Android 项目的经验吗?如果我想安装第二个,我不能安装第一个,因为它会导致错误。我已经尝试创建一个新项目并在其中复制第二个应用程序的源代码,但我遇到了同样的问题。还尝试使用“-clean”命令清理我的工作区,但没有帮助。谁知道解决方案?

该错误表明我的第一个活动(这是我的启动屏幕)的包没有退出。除非我还没有安装第一个应用程序,因为那时一切正常......

提前致谢。

@编辑:

错误:

[2013-06-28 10:06:09 - KCStandaard] Starting activity com.android.standard.actSplash on device 1e0dc11e
[2013-06-28 10:06:09 - KCStandaard] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2013-06-28 10:06:12 - KCStandaard] Starting activity com.android.standard.actSplash on device 1e0dc11e
[2013-06-28 10:06:13 - KCStandaard] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2013-06-28 10:06:16 - KCStandaard] Starting activity com.android.standard.actSplash on device 1e0dc11e
[2013-06-28 10:06:17 - KCStandaard] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2013-06-28 10:06:20 - KCStandaard] Starting activity com.android.standard.actSplash on device 1e0dc11e
[2013-06-28 10:06:20 - KCStandaard] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]   cmp=com.koeriers.tools/com.android.standard.actSplash }
[2013-06-28 10:06:20 - KCStandaard] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2013-06-28 10:06:23 - KCStandaard] Starting activity com.android.standard.actSplash on device 1e0dc11e
[2013-06-28 10:06:24 - KCStandaard] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.koeriers.tools/com.android.standard.actSplash }
[2013-06-28 10:06:24 - KCStandaard] ActivityManager: Error type 3
[2013-06-28 10:06:24 - KCStandaard] ActivityManager: Error: Activity class {com.koeriers.tools/com.android.standard.actSplash} does not exist.

只有当第一个或第二个应用程序已安装时,我才会收到此错误。我正在尝试运行另一个。

4

3 回答 3

3

不要com.android用作包名称的一部分。

我再说一遍,不要使用com.android包名的一部分。那是系统包名,不是你的包名。

于 2013-06-28T08:09:06.883 回答
1

通过右键单击项目>Android工具>重命名应用程序包来重命名应用程序,希望这对您有用。

于 2013-06-28T08:09:38.120 回答
0

如果在第二个项目中包含第一个或其中的一部分等,您很可能会在安装它时遇到问题。如果不是这种情况,请在此处粘贴代码或提供链接,以便我们查看问题所在。

于 2013-06-28T08:03:32.837 回答