Closed TitikshaDaga closed 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.
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
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.
What went wrong: A problem occurred configuring root project 'android'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[ERROR] An error occurred while running cordova run android --device (exit code 1).