I upgraded IntelliJ Idea 12.0.4 to 12.10.
Now all the modules in my Android project give the error:
Error: Default Activity Not Found
I reverted to 12.0.4 and it works.
Any ideas ?? I think it might be related to some plugins not being installed cause the only other thing could have been a local config but I deleted the configuration folder to confirm and that didn't change anything.
Nothing above helped me. After some time I found that IDEA changed action names to uppercase. Like:
After reverting to normal, IDEA recognizes default activity:
my experience: make sure that all your java file has been indentify,if IDEA not indentify your java file ,so he not able to understand what's "Activity" means
good luck :)
Android Manifest.xml set the starting activity like following
in my case i refactored a member variable that was named "activity", i renamed it to "context" ... i found out that the refactor was made to the activity tags in manifest, and i found them context tags instead ... this is really stupid from Android Studio !!
I was facing similar issue recently. The issue was with activitymanifest xml file. please check if taglines are closed properly.
I've encountered the same issue. For some reasons, android Studio replaced all the
android:name
attributes in most of XML files, including the manifest, toandroid:subject
which isn't recognized by Android Studio.As you can see in the picture above the IDE doesn't recognize the
android:subject
attribute. As a result, it won't be able to read the lines which specify the MainActivty.The solution is simply to change every
android:subject
toandroid:name
and then Rebuild the project from Build menu -> Rebuild Project. You might encounter the same issue when rebuilding the project, so do the same as above.