包重命名后应用程序不会安装 [英] app won't install after package rename

查看:25
本文介绍了包重命名后应用程序不会安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了轻松测试某些功能,我创建了我的应用程序的精简副本.不幸的是,这两个应用程序似乎都不再运行了.我已经更改了其中一个的包名称,以避免一个覆盖另一个,并且清单都显示了各自项目的正确包.

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?

我发现两个副本中较新的清单有问题.在重命名期间,折射器必须将 android:name 属性从 MyLaunchActivity 更改为 package.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.

推荐答案

明白了.结果是 eclipse refractor 重命名了清单中的 android:name 属性以包含包名称以及启动活动.不知道为什么旧版本没有安装,但现在似乎没问题^^

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆