【问题标题】:Compose compiler issue with Gradle使用 Gradle 编写编译器问题
【发布时间】:2022-06-29 09:46:38
【问题描述】:

在现有项目中使用 compose 时,Gradle 说在构建项目时无法获取 compose 编译器

无法获取“https://bintray.com/rameshbhupathi/maven/androidx/ui/ui-tooling/1.0.1/ui-tooling-1.0.1.pom”。从服务器收到状态码 403:Forbidden 禁用 Gradle 的“离线模式”并同步项目

buildscript {
ext {
    compileSdkVersion = 29
    minSdkVersion = 23
    targetSdkVersion = 30

    kotlinVersion = '1.5.31'
    compose_version = '1.0.1'
}
repositories {
    google()
    jcenter()
    maven{url 'https://sdk.uxcam.com/android/'}
}
dependencies {
    classpath 'com.android.tools.build:gradle:4.0.1'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
    classpath 'com.google.gms:google-services:4.3.4'
    classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
   }
}

allprojects {
 repositories {
    google()
    jcenter()
    maven { url 'https://jitpack.io' }
    maven { url 'https://bintray.com/rameshbhupathi/maven' }
    maven{url 'https://sdk.uxcam.com/android/'}
    maven {
        url "https://maven.google.com"
    }
  }
}

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

【问题讨论】:

    标签: android gradle android-jetpack-compose


    【解决方案1】:

    您的网络好像有问题,403表示服务器收到消息但拒绝您的访问。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-14
      • 1970-01-01
      • 2023-03-08
      相关资源
      最近更新 更多