You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while I can download these files in my browser and I have not any proxy conf in gradle.
I tried:
reinstalling gradle.
reinstalling android studio and build tools.
reinstalling cordova.
modify repositories in build.gradle to google(),maven(),jcenter and etc.
removing gradle cache folder. reinstalling windows and installing all packages and stuffs from the beginning!
and many trick from stackOverflow and other websites.
my env:
windows 10
android studio 3.2.1
cordova 8.1.2 (cordova-lib@8.1.1)
gradle 4.6
jdk 1.8
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
allprojects {
repositories {
google()
maven {
url "https://dl.google.com/dl/android/maven2"
}
// jcenter()
}
//This replaces project.properties w.r.t. build settings
project.ext {
defaultBuildToolsVersion="27.0.1" //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
}
}
summary:
My cordova android project build failed with error like
while I can download these files in my browser and I have not any proxy conf in gradle.
I tried:
reinstalling gradle.
reinstalling android studio and build tools.
reinstalling cordova.
modify repositories in build.gradle to google(),maven(),jcenter and etc.
removing gradle cache folder.
reinstalling windows and installing all packages and stuffs from the beginning!
and many trick from stackOverflow and other websites.
my env:
windows 10
android studio 3.2.1
cordova 8.1.2 (cordova-lib@8.1.1)
gradle 4.6
jdk 1.8
inside build.gradle:
}
allprojects {
repositories {
google()
maven {
url "https://dl.google.com/dl/android/maven2"
}
// jcenter()
}
//This replaces project.properties w.r.t. build settings
project.ext {
defaultBuildToolsVersion="27.0.1" //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
The text was updated successfully, but these errors were encountered: