包重命名后的应用程序将无法安装 [英] app won't install after package rename
问题描述
为了方便地测试一些功能我建立我的应用程序的精简副本。不幸的是,无论是应用的似乎运行任何更多。我为其中的一个改变了包名,以避免使用只有一个覆盖其他和清单都为各自项目显示正确的包。
In order to easily test some features I created a stripped down copy of my app. Unfortunately neither of the applications seem to run any more. I have changed the package name for one of them to avoid one overwriting the other and the manifests both display the correct package for their respective projects.
下面是在控制台窗口中的错误 - >
Here is the error in the console window ->
[2011-12-24 11:37:44 - AGOS - LevelTest] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=package.package.package/.MyLaunchActivity }
[2011-12-24 11:37:44 - AGOS - LevelTest] ActivityManager: Error type 3
[2011-12-24 11:37:44 - AGOS - LevelTest] ActivityManager: Error: Activity class {package.package.package/package.package.package.MyLaunchActivity} does not exist.
有谁知道什么我忘了配置?
Does anybody know what I've forgotten to configure?
编辑:
我发现,从两个副本中的较新的清单中有一个问题。从 MyLaunchActivity
名称属性包:在重命名折射一定已经改变了
机器人。 package.package.MyLaunchActivtiy
,哥哥仍然是错误的,但。
I found that the manifest from the newer of the two copies had a problem. During the renaming the refractor must have changed the android:name
attribute from MyLaunchActivity
to package.package.package.MyLaunchActivtiy
the older one is still faulty though.
推荐答案
明白了。原来,日食折射更名为的android:在清单名称
属性藏汉包含包名作为发射活动。不知道为什么老版本没有安装,但它似乎是罚款现在^^
Got it. Turns out that the eclipse refractor renamed the android:name
attribute in the manifest to contain the package name aswell as the launch activity. Not sure why the older version wasn't installing but it seems to be fine now ^^
这篇关于包重命名后的应用程序将无法安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!