I am using the Capacitor geolocation plugin. To use the app in Android Tsudio, the documentation of the plugin says:
This API requires the following permissions be added to your AndroidManifest.xml:
But in Android studio I have a number of different folders in my project:
and each of these folders contains a AndroidManifest.xml!
Which one should I us?
For Capacitor 3 at least - android/app/src/main/AndroidManifest.xml
Reference
1 Like
Yes, this is where my AndroidManifest.xml
is for Capacitor 2 as well. I don’t see it explicitly in the Capacitor v2 docs, but the link at the bottom of the page does link to a file in that location as well: Capacitor - build cross platform apps with the web
I think that in my case it is:
android/app/manifests/ AndroidManifest.xml.
I do not see a src/main in my project tree.
They are talking about the physical location of the file, that’s android/app/src/main/AndroidManifest.xml
.
But in Android Studio it’s android/app/manifests/AndroidManifest.xml
.
They are both the same.