views:

23

answers:

1

So today I had a bright idea to rename my packages, now my android application which I have schedule for release on thursday is not working.

I am getting a similar error as follows:

Error: Activity class {org.me.androidapplication2/com.albertrosa.DEMO.MainActivity} does not exist.

I have modified the manifest to reflect the change:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.albertrosa.DEMO"
     android:versionCode="1"
     android:versionName="1.0"

there is more to the manifest but this is all that I have changed. is there something I am missing or doing wrong. I am using netbeans to build this app.

A: 

As you can see, there is a wrong package path here: org.me.androidapplication2/com.albertrosa.DEMO.MainActivity

Have you tried to clean the project? Rebuild? Try to search for the old package name, maybe it is hard coded somewhere?!

WarrenFaith
well there was that line on the project properties so I changed it to com.albertrosa.DEMO and still same error but with that new package
AlbertRosa
I ended up just rebuilding the app. But I am wondering if its 'cuz of the app was on the device with the old name and there was a conflict on the actual device and not in the code itself.
AlbertRosa
That can be the reason. I changed my package name, too, not long ago and had some small problems there. I always prefer cleaning/removing/rebuilding/reinstalling everything...
WarrenFaith