Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android studio 3.2 default activity not found

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>

like image 761
kishan hadiyal Avatar asked Oct 04 '18 07:10

kishan hadiyal


2 Answers

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

like image 56
kirtan403 Avatar answered Oct 02 '22 13:10

kirtan403


I solved the very same issue by doing this

Close Android Studio

deleting :

1 .android

2 .AndroidStudio

3 .gradle

from C:\Users\[your user name]

Start Android studio ( Will take some time to rebuild)

like image 27
anwar alam Avatar answered Oct 02 '22 15:10

anwar alam