dpa99c / phonegap-launch-navigator

Phonegap/Cordova plugin which launches native route navigation apps for Android, iOS and Windows
369 stars 131 forks source link

After installing this plugin the app fails to build for Ionic #166

Closed TitikshaDaga closed 7 years ago

TitikshaDaga commented 7 years ago

I am making an ionic app.I wanted to open the default maps app for any device. After installing the plugin i m getting the following error : /home/power/Ionic_Projects/UrMuv/platforms/android/gradlew: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.

[ERROR] An error occurred while running cordova run android --device (exit code 1).

dpa99c commented 7 years ago

As the error states, the problem is that the Gradle build tool was unable to reach the Google Maven server in order to download okhttp, an HTTP client library that the plugin uses and therefore depends on.

If you have a firewall running, check it's not blocking this connection. If you're going through a proxy, you'll need to configure Gradle to use it - see here.

Closing as this is not an issue with the plugin itself but with your build environment.

fernandoghisi commented 6 years ago

If you are under a corporate proxy, just create a "gradle.properties" file inside ".gradle" folder (for Windows, it's usually located at "C:\Users\username\.gradle\").

systemProp.http.proxyHost=www.somehost.org systemProp.http.proxyPort=8080 systemProp.http.proxyUser=userid systemProp.http.proxyPassword=password systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost

systemProp.https.proxyHost=www.somehost.org systemProp.https.proxyPort=8080 systemProp.https.proxyUser=userid systemProp.https.proxyPassword=password systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost