Day 99— handle “Default Activity Not Found” in react native project
I have an ejected expo project which needs Android Studio or Xcode to build the app for development. When I opened the project with Android Studio, Default Activity Not Found
error occurred to prevent me to build the app. I searched for a solution online, but none of them solved my problem. I thought the default activity is really missing in AndroidManifest.xml
, but it was not. I also thought it might be an IDE problem, as I had successfully built the project with an older version of Android Studio. However, I found that there was a duplicated activity declaration in AndroidManifest.xml
. After I removed the duplication, the IDE could detect the default activity.
reference: