You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i have installed in my ionic project both plugins, cordova-plugin-google-analytics and cordova-plugin-geolocation, when i will compile my Android apk, exists an error on AndroidManifest.xml because i have duplicate entries, <uses-feature android:name="android.hardware.location.gps" android:required="true" /> for cordova-plugin-geolocation, because it has "GPS_REQUIRED": "true" in the package.json, and <uses-feature android:name="android.hardware.location.gps" /> for cordova-plugin-google-analytics, because does not have the GPS_REQUIRED variable available.
When i remove the android platform from my project and add again, we can see the duplicate entries.
And when i compile gradle catch the error Element uses-feature#android.hardware.location.gps at AndroidManifest.xml:77:5-66 duplicated with element declared at AndroidManifest.xml:74:5-90
My plugins versions are:
"cordova-plugin-geolocation": "^4.0.2",
"cordova-plugin-google-analytics": "^1.9.0",
I already tried to use <edit-config file="app/src/main/AndroidManifest.xml" mode="overwite"... entry in my config.xml, trying to overwrite one of them, i've tried merge the entries, without success.
Hello guys.
When i have installed in my ionic project both plugins,
cordova-plugin-google-analytics
andcordova-plugin-geolocation
, when i will compile my Android apk, exists an error on AndroidManifest.xml because i have duplicate entries,<uses-feature android:name="android.hardware.location.gps" android:required="true" />
for cordova-plugin-geolocation, because it has "GPS_REQUIRED": "true" in the package.json, and<uses-feature android:name="android.hardware.location.gps" />
for cordova-plugin-google-analytics, because does not have the GPS_REQUIRED variable available.When i remove the android platform from my project and add again, we can see the duplicate entries.
And when i compile gradle catch the error
Element uses-feature#android.hardware.location.gps at AndroidManifest.xml:77:5-66 duplicated with element declared at AndroidManifest.xml:74:5-90
My plugins versions are:
"cordova-plugin-geolocation": "^4.0.2",
"cordova-plugin-google-analytics": "^1.9.0",
I already tried to use
<edit-config file="app/src/main/AndroidManifest.xml" mode="overwite"...
entry in my config.xml, trying to overwrite one of them, i've tried merge the entries, without success.Could you help me please?
Here is my full package.json
The text was updated successfully, but these errors were encountered: