NativeScript / nativescript-background-http

Background Upload plugin for the NativeScript framework
Apache License 2.0
101 stars 50 forks source link

Android build fail with gotev #158

Closed minhquan2904 closed 6 years ago

minhquan2904 commented 6 years ago

When i run 'tns build android' , it throw error : [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app Could not resolve net.gotev:uploadservice:3.4.2. Required by: project :app Could not resolve net.gotev:uploadservice:3.4.2. Could not get resource 'https://jcenter.bintray.com/net/gotev/uploadservice/3.4.2/uploadservice-3.4.2.pom'.

Version info

Library initialization code:

buildscript {

    repositories {
        google()
        jcenter {url "http://jcenter.bintray.com/"}

    }
    dependencies {
        classpath 'com.google.gms:google-services:3.1.1'
        classpath 'com.android.tools.build:gradle:2.3.3'

    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
        mavenLocal()
        maven { url "https://maven.google.com" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Server log (if applicable)

[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]    > Could not resolve net.gotev:uploadservice:3.4.2.
09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]      Required by:
09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]          project :app
09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]       > Could not resolve net.gotev:uploadservice:3.4.2.
09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]          > Could not get resource 'https://jcenter.bintray.com/net/gotev/uploadservice/3.4.2/uploadservice-3.4.2.pom'.
09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]             > Could not GET 'https://jcenter.bintray.com/net/gotev/uploadservice/3.4.2/uploadservice-3.4.2.pom'.09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]                > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]       > Could not resolve net.gotev:uploadservice:3.4.2.
09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]          > Could not get resource 'https://jcenter.bintray.com/net/gotev/uploadservice/3.4.2/uploadservice-3.4.2.pom'.
09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]             > Could not GET 'https://jcenter.bintray.com/net/gotev/uploadservice/3.4.2/uploadservice-3.4.2.pom'.09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]                > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]       > Could not resolve net.gotev:uploadservice:3.4.2.
09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]          > Could not get resource 'https://jcenter.bintray.com/net/gotev/uploadservice/3.4.2/uploadservice-3.4.2.pom'.
09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]             > Could not GET 'https://jcenter.bintray.com/net/gotev/uploadservice/3.4.2/uploadservice-3.4.2.pom'.09:37:59.868 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]                > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Additional info

My app is working on iOS. I got this error for the firstime build on Android

lini commented 6 years ago

The error you are getting was caused by a temporary outage at jcenter (a service by bintray that is used to host Android libraries).

If you get such errors in the future, please retry the build or move the jcenter repository in the build gradle file to the bottom of the list (bellow the maven repository).