Default Activity Not Found on Android Studio upgrade
If you see that error occur after upgrading versions of IntelliJ IDEA or Android Studio, or after generating a new APK file, you may need to refresh the IDE's cache.
Menu File → Invalidate Caches and restart...
Default Activity not found in Android Studio
In Android Studio, right click on the project and choose Open Module Settings. Then go to the Sources tab in your module, find the src folder, right click on it and mark it as Sources (blue color).
EDIT: There is no sources tab in later versions of Android Studio, but you can edit the build.gradle file instead: https://stackoverflow.com/a/22028681/1101730 (thanks for comment Josh)
Default Activity Not Found - Bug in Android Studio 3.3
There is a chance that Android Studio itself could've been corrupted. Uninstalling and Reinstalling Android Studio solves the problem.
Could not identify launch Activity: Default Activity not found
For main activity in your manifest you have to add this with category LAUNCHER
(First Activity on launch app):
<activity
android:name=".MainActivity"
android:label="YourAppName"
android:theme="@style/AppTheme.NoActionBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
For other activity you have to change category to DEFAULT
:
<activity
android:name=".OtherActivity"
android:theme="@style/AppTheme.NoActionBar" >
<intent-filter>
<action android:name="package.OtherActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Check this Activity and this Start Another Activity
So your code is:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mrrobot.mycoolweather" >
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity
android:name=".activity.ChooseAreaActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Related Topics
Illegalstateexception When Replacing a Fragment
Adt Blank Activity Created with Fragment Activity
Accessing Files from Genymotion Sd Card
How to Send Notification to Specific Users with Fcm
Android Studio How to Run Gradle Sync Manually
Project Has No Default.Properties File! Edit the Project Properties to Set One
Android: Free Cropping of Image
Android/Firebase - Error While Parsing Timestamp in Gcm Event - Null Timestamp
Java.Lang.Numberformatexception: Invalid Int: "" in Android
How to Change Screen Orientation in the Android Emulator
Pass List of Objects from One Activity to Other Activity in Android
Change Clickable Textview's Color on Focus and Click
Identifying Rtl Language in Android
How to Tell Which App Was Selected by Intent.Createchooser
Why Is the Android Test Runner Reporting "Empty Test Suite"
Android/Java: Transition/Migration from Proguard to R8
How to Merge Dex - Android Studio 3.0
Android Youtubeplayer with Unauthorized Overlay on Top of Player