I have created a new ionic project following the instructions on ionic's site.
I followed these steps
ionic start myApp tabs
cd myApp
ionic platform add android
When running ionic serve
- the project runs fine on my computer.
When I try to run ionic build android
so that I can deploy to my phone I get the following error:
- 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:2.1.0.
Required by:
:android:unspecified
Could not resolve com.android.tools.build:gradle:2.1.0.
Could not get resource 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'.
Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'.
Unrecognized SSL message, plaintext connection?
Could not resolve com.android.tools.build:gradle:2.1.0.
Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'.
Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom'.
Unrecognized SSL message, plaintext connection?
The first resource I could not GET https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom I see an xml page no 404 error.
The second link https://jcenter.bintray.com/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom downloads the .pom file with no issues.
Not sure what to make of the Unrecognized SSL message, plaintext connection?
ionic version: 2.0.0
gradle version: 2.13
cordova version: 6.3.1