代码之家  ›  专栏  ›  技术社区  ›  sagar varsani

渐变同步失败。基本功能无法正常工作

  •  1
  • sagar varsani  · 技术社区  · 7 年前

    错误如下:
    org.gradle.internal公司.资源.transport.http.HttpErrorStatusCodeException:无法发送' http://repo.pageturner-reader.org/com/highsoft/highcharts/highcharts/6.1.4/highcharts-6.1.4.pom '. 从服务器收到状态代码403:禁止<35内部调用>

    以下是完整的错误消息:

        Executing tasks: [assembleDebug]
    
    WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
    It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
    registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
    Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
    registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
    registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
    Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]
    registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
    :app:preBuild UP-TO-DATE
    :app:preDebugBuild FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Could not resolve all files for configuration ':app:debugCompileClasspath'.
    > Could not resolve com.osbcp.cssparser:cssparser:1.5.
      Required by:
          project :app
       > Could not resolve com.osbcp.cssparser:cssparser:1.5.
          > Could not get resource 'http://repo.pageturner-reader.org/com/osbcp/cssparser/cssparser/1.5/cssparser-1.5.pom'.
             > Could not GET 'http://repo.pageturner-reader.org/com/osbcp/cssparser/cssparser/1.5/cssparser-1.5.pom'. Received status code 403 from server: Forbidden
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 17s
    

    我的顶级构建文件是

    buildscript {
        repositories {
            jcenter()
            maven { url 'https://maven.fabric.io/public' }
            maven { url 'https://maven.google.com' }
            maven { url "https://highsoft.bintray.com/Highcharts"}
            mavenCentral()
            google()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.1.1'
            classpath 'com.google.gms:google-services:3.2.0'
            classpath 'io.fabric.tools:gradle:1.25.1'
            classpath "io.realm:realm-gradle-plugin:2.2.0"
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    


    这是我的应用程序级别生成.gradle文件内容。

    buildscript {
        repositories {
            jcenter()
            google()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.1.1'
            classpath 'com.google.gms:google-services:3.0.0'
        }
    }
    
    allprojects {
        repositories {
            google()
            maven {
                url "https://maven.google.com"
                name 'Google'
            }
            maven {
                url "http://repo.pageturner-reader.org"
            }
            maven {
                url "https://highsoft.bintray.com/Highcharts"
            }
            maven {
                url "https://jitpack.io"
            }
            jcenter()
        }
    }
    

    请帮我解决这个问题。

    2 回复  |  直到 7 年前
        1
  •  0
  •   Meena Dev    7 年前

    格拉德尔 右侧选项卡-> ->双击 装配式窃听器 .

        2
  •  0
  •   lukas.bloder    7 年前

    请同时提供应用程序级别生成.gradle,可能与那里的存储库/依赖项配置有关。