Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Default Activity Not Found" on Android Studio upgrade

I upgraded IntelliJ Idea from 12.0.4 to 12.10.

Now all the modules in my Android project give the error:

Error: Default Activity Not Found

I reverted back to 12.0.4 and it everything works again.

Any ideas? I think it might be an issue with a missing plugin. Since the plugin is not installed, it is not able to find the default activity. Another thing could have been a local config, but I doubt it. I deleted the configuration folder to verify and that didn't change anything.

like image 840
Saad Farooq Avatar asked Apr 05 '13 02:04

Saad Farooq


People also ask

How do I determine the default activity using Android Studio?

In Android, you can configure the starting activity (default activity) of your application via following “intent-filter” in “AndroidManifest. xml“. See following code snippet to configure a activity class “logoActivity” as the default activity.

What is MainActivity this in Android?

Typically, one activity in an app is specified as the main activity, which is the first screen to appear when the user launches the app. Each activity can then start another activity in order to perform different actions.


1 Answers

If you see that error occur after upgrading versions of IntelliJ IDEA or Android Studio, or after Generating a new APK, you may need to refresh the IDE's cache.

File -> Invalidate Caches / Restart... 
like image 144
Sky Kelsey Avatar answered Sep 29 '22 06:09

Sky Kelsey