Hello,
I am building an application using the ionic framework on a windows 7 virtual machine running on a RHEL host. I am trying to build the application using the command: ionic build android but the build fails with the following error:
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘android’.
Could not resolve all dependencies for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle:1.0.0+.
Required by:
:android:unspecified
Failed to list versions for com.android.tools.build:gradle.
Unable to load Maven meta-data from Central Repository: co
m/android/tools/build/gradle/maven-metadata.xml.
Could not GET ‘https://repo1.maven.org/maven2/com/android/tools/bu
ild/gradle/maven-metadata.xml’.
The target server failed to respond
I’ve configured the gradle.properties files under C:\Users<user>\gradle.properties file. This is how it looks
systemProp.proxySet=true
systemProp.http.proxyHost=myproxy
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=myproxy
systemProp.https.proxyPort=8080
The build process throws the error in addition to the one I mentioned above.
build.gradle -Dorg.gradle.daemon=true
Invalid value for java system property ‘http.proxyPort’: 8080 . Default port
‘80’ will be used.
Invalid value for java system property ‘http.proxyPort’: 8080 . Default port
‘80’ will be used.
although, I googled extensively, the solutions posted were mostly to configure the gradle.properties file but it does not seem to take effect. Therefore, it would be very helpful if someone could help me to resolve this error. Thanks for your time!
Regards,
Aj