You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/03/23 11:23:39 UTC

[GitHub] [cordova-plugin-geolocation] piernik opened a new issue #222: android.hardware.location.gps added twice in androidManifest

piernik opened a new issue #222:
URL: https://github.com/apache/cordova-plugin-geolocation/issues/222


   I have two plugins that uses location. Yours and Google Maps:  https://github.com/mapsplugin/cordova-plugin-googlemaps
   
   This way there are two  tags `<uses-feature android:name="android.hardware.location.gps" />` in `AndroidManifest.xml` file :/
   
   Tried adding 
   ```
   <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/uses-feature[@android:name='android.hardware.location.gps']" xmlns:android="http://schemas.android.com/apk/res/android">
               <uses-feature android:name="android.hardware.location.gps" />
           </edit-config>
   ```
   to config.xml file but it is not helping. How to resolve it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-geolocation] vnrdroidfreak commented on issue #222: android.hardware.location.gps added twice in androidManifest

Posted by GitBox <gi...@apache.org>.
vnrdroidfreak commented on issue #222:
URL: https://github.com/apache/cordova-plugin-geolocation/issues/222#issuecomment-906391121


   i have fixed this error by open this project from platform folder with android studio. 
   1)open search file window by double press shift button
   2) find "android.json" file and open it
   3) find word "gps" and remove duplicate entry
   4) try ionic cordova build android now
   5) open android manifest file and remove duplicate entry for gps.
   again can take build in either android studio or  ionic cordova build android  will solve this issue.
   
   Happy coding. cheers
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-geolocation] apri23 commented on issue #222: android.hardware.location.gps added twice in androidManifest

Posted by GitBox <gi...@apache.org>.
apri23 commented on issue #222:
URL: https://github.com/apache/cordova-plugin-geolocation/issues/222#issuecomment-810932898


   I also have the same problem. build error. any solutions?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org