android studio 3.2 default activity not found

kishan hadiyal picture kishan hadiyal · Oct 4, 2018 · Viewed 14.1k times · Source

Recently I updated my android studio to 3.2 but when the old open project I getting the error "default activity not found".

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.qualifiedapps.birthdaywishes">

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

Answer

kirtan403 picture kirtan403 · Jan 8, 2019

None of the given solutions worked for me. The thing that worked for me was:

  • Exit Android Studio
  • Find AndroidStudio3.2 (or whatever your version is) folder
  • Go to AndroidStudio3.2 -> system -> caches
  • Delete that folder
  • Restart Android Studio

It will re-index your files and that thing will work