On Android, register the plugin in your main activity:

I’m new to android studio and i’m trying to add the capacitor analytics plugin. the docs say

On Android, register the plugin in your main activity:

but there are several manifest files that have the main activity class - which one is the correct one?

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

Found it, thank you so much!