“Default Activity Not Found” on Android Studio upgrade

后端 未结 30 1998
时光说笑
时光说笑 2020-11-22 05:08

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

30条回答
  •  太阳男子
    2020-11-22 05:54

    Sync Project With Gradle Files works sometimes, To fix this Overall issue you should

    1. Exit Android Studio
    2. Go to USER -> AndroidStudio -> system -> caches
    3. Delete that folder
    4. Start Android Studio.

    It will re-index your files and that should work

    Thanks to kirtan403 from a similar question.

提交回复
热议问题