I am using a gradle dependency and have been for the past 12 months. All of a sudden today, it can not resolve.
I have tried changing the version, cleaning my build, reinstalling Android SDK's etc. but all to no avail.
I was hoping someone could help me in resolving this issue. The error is below:
Gradle File Below:
buildscript {
repositories {
maven { url '' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: '.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url '' }
}
android {
pileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "OMMITED-FOR-SECURITY"
minSdkVersion 15
targetSdkVersion 26
versionCode 7
versionName "1.0.3"
testInstrumentationRunner "android.support.SplashActivity.runner.AndroidJUnitRunner"
renderscriptTargetApi 23
renderscriptSupportModeEnabled true
multiDexEnabled true
ndk {
abiFilters 'armeabi-v7a', 'x86', 'arm64-v8a'
}
//Brandon's Added Config
manifestPlaceholders = [onesignal_app_id: "583f96e8-3cec-416e-ad0e-7bdef470a6a7",
// Project number pulled from dashboard, local value is ignored.
onesignal_google_project_number: "REMOTE"]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
useLibrary 'org.apache.http.legacy'
lintOptions {
checkReleaseBuilds false
}
dexOptions {
javaMaxHeapSize "2g"
}
}
allprojects {
repositories {
jcenter()
flatDir {
dirs '../aar'
}
maven {
url ''
}
}
buildDir = 'Build'
}
dependencies {
//File Tree
pile fileTree(dir: 'libs', include: ['*.jar'])
//Android Dependencies
pile '.android.support:apppat-v7:26.1.0'
pile '.android.support.constraint:constraint-layout:1.0.2'
pile '.android.support:design:26.1.0'
pile '.android.support:multidex:1.0.1'
//Parse Dependencies
pile '.parse:parse-android:1.15.7'
pile '.parse.bolts:bolts-tasks:1.4.0'
pile '.parse.bolts:bolts-applinks:1.4.0'
pile '.parse:parsefacebookutils-v4-android:1.10.3@aar'
pile '.parse:parseui-login-android:0.0.1'
pile '.parse:parseui-widget-android:0.0.1'
//Cloud Hosting Libraries
pile '.dropbox.core:dropbox-core-sdk:3.0.2'
pile('.microsoft.aad:adal:1.2.2') {
exclude group: '.android.support'
}
pile '.onedrive.sdk:onedrive-sdk-android:1.2.1'
pile 'pl.droidsonroids.gif:android-gif-drawable:1.2.8'
pile '.ogaclejapan.arclayout:library:1.1.0@aar'
pile '.squareup.okhttp3:okhttp:3.0.1'
pile '.facebook.android:facebook-android-sdk:4.10.0'
pile '.squareup.picasso:picasso:2.5.2'
pile '.github.florent37:camerafragment:1.0.4'
pile '.box:box-android-sdk:4.0.8'
pile '.eclipsesource.minimal-json:minimal-json:0.9.1'
pile '.kyleduo.switchbutton:library:1.4.5'
pile 'net.danlew:android.joda:2.9.9'
pile ('.wdullaer:materialdatetimepicker:3.3.0') {
exclude group: '.android.support'
}
pile '.miguelcatalan:materialsearchview:1.4.0'
pile 'org.apachemons:mons-math3:3.6.1'
pile '.github.axet:android-library:1.1.3'
pile '.chauthai.swipereveallayout:swipe-reveal-layout:1.4.0'
pile '.linsea:universalvideoview:1.1.0@aar'
pile '.devbrackets.android:exomedia:4.0.3'
pile '.flurgle:camerakit:0.9.18'
testCompile 'junit:junit:4.12'
pile 'homhomlin.lib:ptrrv-library:1.3.1'
//Butter Knife
annotationProcessor '.jakewharton:butterknife-piler:8.5.1'
pile '.beloo.widget:ChipsLayoutManager:0.3.7@aar'
pile '.github.oxoooo:touch-image-view:1.0.1'
pile '.jakewharton:butterknife:8.5.1'
//DMSDK Libraries
pile(name: 'dms', ext: 'aar')
pile(name: 'audiohelper', ext: 'aar')
pile(name: 'camerahelper', ext: 'aar')
//Brandon's Added libraries
pile('.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
transitive = true;
}
pile '.github.michael-rapp:android-material-dialog:4.0.3'
pile '.iceteck.silipressorr:silipressor:2.0'
pile ('.onesignal:OneSignal:[3.6.0, 3.99.99]') {
exclude group: '.android.support'
exclude group: '.google.android.gms'
}
pile '.orhanobut:dialogplus:1.11@aar'
pile '.thefinestartist:finestwebview:1.2.7'
pile 'info.hoang8f:android-segmented:1.0.6'
pile '.github.wseemann:FFmpegMediaMetadataRetriever:1.0.14'
//IMG.LY Libraries
pile 'ly.img.android:photo-editor-sdk:5.0.0-beta'
//HTML Libraries
pile 'jp.wasabeef:richeditor-android:1.2.2'
pile 'org.sufficientlysecure:html-textview:3.4'
//Play Service Libraries
pile '.google.android.gms:play-services-gcm:11.2.2'
pile '.google.android.gms:play-services-analytics:11.2.2'
pile '.google.android.gms:play-services-drive:11.2.2'
pile '.google.android.gms:play-services-gcm:11.2.2'
pile '.google.android.gms:play-services-location:11.2.2'
//Firebase Libraries
pile '.google.firebase:firebase-appindexing:11.2.2'
pile '.google.firebase:firebase-core:11.2.2'
pile ".google.firebase:firebase-database:11.2.2"
pile '.google.firebase:firebase-auth:11.2.2'
//Messaging Libraries
pile '.github.stfalcon:chatkit:0.2.2'
pile 'org.cryptonode.jncryptor:jncryptor:1.2.0'
}
apply plugin: '.google.gms.google-services'
My project wide build file is as follows:
// Top-level build file where you can add configuration options mon to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath '.android.tools.build:gradle:2.3.3'
classpath '.google.gms:google-services:3.0.0'
classpath 'me.tatarka:gradle-retrolambda:3.7.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
maven { url "" }
maven { url "" }
maven { url "" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
I am using a gradle dependency and have been for the past 12 months. All of a sudden today, it can not resolve.
I have tried changing the version, cleaning my build, reinstalling Android SDK's etc. but all to no avail.
I was hoping someone could help me in resolving this issue. The error is below:
Gradle File Below:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: '.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
pileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "OMMITED-FOR-SECURITY"
minSdkVersion 15
targetSdkVersion 26
versionCode 7
versionName "1.0.3"
testInstrumentationRunner "android.support.SplashActivity.runner.AndroidJUnitRunner"
renderscriptTargetApi 23
renderscriptSupportModeEnabled true
multiDexEnabled true
ndk {
abiFilters 'armeabi-v7a', 'x86', 'arm64-v8a'
}
//Brandon's Added Config
manifestPlaceholders = [onesignal_app_id: "583f96e8-3cec-416e-ad0e-7bdef470a6a7",
// Project number pulled from dashboard, local value is ignored.
onesignal_google_project_number: "REMOTE"]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
useLibrary 'org.apache.http.legacy'
lintOptions {
checkReleaseBuilds false
}
dexOptions {
javaMaxHeapSize "2g"
}
}
allprojects {
repositories {
jcenter()
flatDir {
dirs '../aar'
}
maven {
url 'https://maven.google.'
}
}
buildDir = 'Build'
}
dependencies {
//File Tree
pile fileTree(dir: 'libs', include: ['*.jar'])
//Android Dependencies
pile '.android.support:apppat-v7:26.1.0'
pile '.android.support.constraint:constraint-layout:1.0.2'
pile '.android.support:design:26.1.0'
pile '.android.support:multidex:1.0.1'
//Parse Dependencies
pile '.parse:parse-android:1.15.7'
pile '.parse.bolts:bolts-tasks:1.4.0'
pile '.parse.bolts:bolts-applinks:1.4.0'
pile '.parse:parsefacebookutils-v4-android:1.10.3@aar'
pile '.parse:parseui-login-android:0.0.1'
pile '.parse:parseui-widget-android:0.0.1'
//Cloud Hosting Libraries
pile '.dropbox.core:dropbox-core-sdk:3.0.2'
pile('.microsoft.aad:adal:1.2.2') {
exclude group: '.android.support'
}
pile '.onedrive.sdk:onedrive-sdk-android:1.2.1'
pile 'pl.droidsonroids.gif:android-gif-drawable:1.2.8'
pile '.ogaclejapan.arclayout:library:1.1.0@aar'
pile '.squareup.okhttp3:okhttp:3.0.1'
pile '.facebook.android:facebook-android-sdk:4.10.0'
pile '.squareup.picasso:picasso:2.5.2'
pile '.github.florent37:camerafragment:1.0.4'
pile '.box:box-android-sdk:4.0.8'
pile '.eclipsesource.minimal-json:minimal-json:0.9.1'
pile '.kyleduo.switchbutton:library:1.4.5'
pile 'net.danlew:android.joda:2.9.9'
pile ('.wdullaer:materialdatetimepicker:3.3.0') {
exclude group: '.android.support'
}
pile '.miguelcatalan:materialsearchview:1.4.0'
pile 'org.apache.mons:mons-math3:3.6.1'
pile '.github.axet:android-library:1.1.3'
pile '.chauthai.swipereveallayout:swipe-reveal-layout:1.4.0'
pile '.linsea:universalvideoview:1.1.0@aar'
pile '.devbrackets.android:exomedia:4.0.3'
pile '.flurgle:camerakit:0.9.18'
testCompile 'junit:junit:4.12'
pile 'homhomlin.lib:ptrrv-library:1.3.1'
//Butter Knife
annotationProcessor '.jakewharton:butterknife-piler:8.5.1'
pile '.beloo.widget:ChipsLayoutManager:0.3.7@aar'
pile '.github.oxoooo:touch-image-view:1.0.1'
pile '.jakewharton:butterknife:8.5.1'
//DMSDK Libraries
pile(name: 'dms', ext: 'aar')
pile(name: 'audiohelper', ext: 'aar')
pile(name: 'camerahelper', ext: 'aar')
//Brandon's Added libraries
pile('.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
transitive = true;
}
pile '.github.michael-rapp:android-material-dialog:4.0.3'
pile '.iceteck.silipressorr:silipressor:2.0'
pile ('.onesignal:OneSignal:[3.6.0, 3.99.99]') {
exclude group: '.android.support'
exclude group: '.google.android.gms'
}
pile '.orhanobut:dialogplus:1.11@aar'
pile '.thefinestartist:finestwebview:1.2.7'
pile 'info.hoang8f:android-segmented:1.0.6'
pile '.github.wseemann:FFmpegMediaMetadataRetriever:1.0.14'
//IMG.LY Libraries
pile 'ly.img.android:photo-editor-sdk:5.0.0-beta'
//HTML Libraries
pile 'jp.wasabeef:richeditor-android:1.2.2'
pile 'org.sufficientlysecure:html-textview:3.4'
//Play Service Libraries
pile '.google.android.gms:play-services-gcm:11.2.2'
pile '.google.android.gms:play-services-analytics:11.2.2'
pile '.google.android.gms:play-services-drive:11.2.2'
pile '.google.android.gms:play-services-gcm:11.2.2'
pile '.google.android.gms:play-services-location:11.2.2'
//Firebase Libraries
pile '.google.firebase:firebase-appindexing:11.2.2'
pile '.google.firebase:firebase-core:11.2.2'
pile ".google.firebase:firebase-database:11.2.2"
pile '.google.firebase:firebase-auth:11.2.2'
//Messaging Libraries
pile '.github.stfalcon:chatkit:0.2.2'
pile 'org.cryptonode.jncryptor:jncryptor:1.2.0'
}
apply plugin: '.google.gms.google-services'
My project wide build file is as follows:
// Top-level build file where you can add configuration options mon to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath '.android.tools.build:gradle:2.3.3'
classpath '.google.gms:google-services:3.0.0'
classpath 'me.tatarka:gradle-retrolambda:3.7.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
maven { url "https://oss.sonatype/content/repositories/snapshots" }
maven { url "https://artifactory.9elements./artifactory/imgly" }
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Share
Improve this question
edited Sep 19, 2017 at 6:36
user8622974
asked Sep 19, 2017 at 3:17
Brandon StillitanoBrandon Stillitano
1,73612 silver badges30 bronze badges
1
- If it's of any significance, this has only started happening since installing OSX High Sierra – Brandon Stillitano Commented Sep 19, 2017 at 3:41
2 Answers
Reset to default 4I have figured out the issue.
The issue was that the ponent author changed their IP address and failed to inform the munity.
Gradle keeps a cache of plugins and I had to clear the cache in order to make gradle recognise the new IP address. To do this I did the following:
In Android Studio:
- File > Invalidate Caches / Restart...
- Invalidate and Restart
In Android Terminal (OSX):
./gradlew cleanBuildCache
In Android Terminal (Windows):
gradlew cleanBuildCache
This is going to sound weird, but you should check that your system clock is set correctly, including the proper time zone.
If your system time is correct, you might need to nuke and re-install your JVM.
Your build is failing because Gradle can't reach the artifact repository. When it tries to connect, it's throwing this error:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
That's Gradle telling you that the TLS handshake between Gradle and the artifact repository is failing.
There's a few reasons this could happen:
- Somehow your trust store got zapped so the JVM doesn't recognized any SSL certs, including CA-signed ones.
- Your system time is so bonkered that the validation routine thinks the site's SSL certificate is expired, or hasn't taken effect yet.
- You're behind a TLS-aware proxy but you don't have the proxy's cert in your trust store.
- The repo's SSL certificates are in fact hosed (in which case it'd be down for everyone, not just you)
You can rule out most of these by pointing your web browser at the repository download URL shown in the error. If the file downloads, you know it's not your system time or the server's SSL certificates.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745107979a4611671.html
评论列表(0条)