Hi,

I have created a new android studio project, renaming the package in the 
process, but Android Studio insists on trying to launch the old package 
when I 'run'. I tried deleting the gradle cache, invalidating caches in the 
IDE etc but it just refuses to launch the right package. The weird thing is 
this was working last night, the problem only began this morning!

This is what I get when I try to launch my app:

Error while executing: am start -n 
"com.example.blitzresearch.monkey2game/com.example.monkey2.monkey2game.Monkey2Game"
 
-a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN 
cat=[android.intent.category.LAUNCHER] 
cmp=com.example.blitzresearch.monkey2game/com.example.monkey2.monkey2game.Monkey2Game
 
}
Error type 3
Error: Activity class 
{com.example.blitzresearch.monkey2game/com.example.monkey2.monkey2game.Monkey2Game}
 
does not exist.

The 'com.example.blitzresearch.monkey2game' package was the 'suggested' 
package name when I created the project, but I immediately changed it (this 
was about my 3rd attempt at getting a project going with the package name I 
wanted). Thinking about it now, perhaps the project name is clashing with a 
previous attempt? I'll try again with a different project name.

I eventually found a reference to the 'wrong' package name in a project.dat 
file deep in the bowels of an .AndroidStudio2.1 folder, but this appears to 
be a binary file. Should I try deleting it?

Any other ideas?

Bye,
Mark

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b67d896b-94f8-402e-a652-c11e21f714b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to