I know that these types of errors are common in Android Studio. The error occurred because of not entering the path ".main.MainActivity" where the MainActivity is located in the manifest. My question is why the framework cannot spot such errors during the compilation? It looks like a silly mistake but after so much hype about compile time error checking these kinds of errors go unnoticed and the app crashes when running.