Application will not be installed after renaming a package

To easily test some features, I created a stripped-down copy of my application. Unfortunately, none of the applications work anymore. I changed the package name for one of them to avoid overwriting the other, and the manifests 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 anyone know what I forgot to configure?

EDIT:

I found that the manifest from the new instance of the two copies had a problem. At the time of renaming, the refractor was supposed to change the android:name attribute from MyLaunchActivity to package.package.package.MyLaunchActivtiy , however the older one is still faulty.

+4
source share
2 answers

Got it. It turns out that the eclipse refractor renamed the android:name attribute in the manifest to contain the package name as well as the launch activity. I do not know why the old version was not installed, but now it seems that this is normal. ^^

+1
source

Most likely, you just need to remove the source package from the device / emulator.

I had the same problem in the past and removing my β€œworking” application from the emulator allowed the renamed application to install and run correctly.

Edit: more information on how to remove the package: http://androidcommunity.com/forums/f4/how-to-uninstall-delete-an-application-from-the-emulator-126/ or go to Settings β†’ Applications β†’ Application management and you can remove it from there.

0
source

Source: https://habr.com/ru/post/1387869/


All Articles