There will only be a single MainActivity file pertaining to your app.
The path of that file will be based on your app’s id which you set in capacitor.config.json.
For example, if my app ID is ‘com.myappid.something’, then my MainActivity will be at:
android/app/src/main/java/com/myappid/something/MainActivity.java