API 'variant.getExternalNativeBuildTasks ()'는 더 이상 사용되지 않으며 'variant.getExternalNativeBuildProviders ()로 대체되었습니다.


337

gradle 플러그인 버전과 함께 Android Studio 3.3 Canary 11 사용 3.3.0-alpha11. gradle을 동기화하려고 할 때 다음 오류가 발생합니다.

WARNING: API 'variant.getExternalNativeBuildTasks()' is obsolete and has been 
replaced with 'variant.getExternalNativeBuildProviders()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration- 
avoidance
Affected Modules: app

오류를 클릭하면 gradle 파일 에서이 줄로 연결됩니다

applicationVariants.all { variant ->
            variant.outputs.all {
                outputFileName = "${variant.name}-${variant.versionName}.apk"
            }
        }

여기서 정확히 무엇을 변경해야합니까?

계획 build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        mavenCentral() // jcenter() works as well because it pulls from Maven Central
        maven { url "https://maven.google.com" }
        google()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.0-alpha11'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath "io.realm:realm-gradle-plugin:4.1.1"
        classpath 'com.google.gms:google-services:3.2.1'
        classpath 'com.google.firebase:firebase-plugins:1.1.5'
    }
}

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

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

// Define versions in a single place
ext {
    // Sdk and tools
    minSdkVersion = 21
    targetSdkVersion = 27
    compileSdkVersion = 27
    buildToolsVersion = '27.0.3'

    // App dependencies
    supportLibraryVersion = '27.1.1'
    appCompactLibraryVersion = '27.1.1'
    playServicesVersion = '15.0.1'
    firebaseVersionCore = '16.0.1'
    firebaseVersionPerf = '16.0.0'
    firebaseVersionMessaging = '17.1.0'

    //lottie
    lottieVersion = '2.5.0'
}

앱 build.gradle

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.25.4'
    }
    buildscript {
        repositories {
            maven { url "https://maven.google.com" }
            maven { url 'https://maven.fabric.io/public' }
            mavenCentral()

        }

        dependencies {
            // These docs use an open ended version so that our plugin
            // can be updated quickly in response to Android tooling updates

            // We recommend changing it to the latest version from our changelog:
            // https://docs.fabric.io/android/changelog.html#fabric-gradle-plugin
            classpath 'io.fabric.tools:gradle:'
        }
    }
}
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.firebase-perf'
repositories {
    maven { url 'https://maven.fabric.io/public' }
}

apply plugin: 'io.fabric'
apply plugin: 'realm-android'

android {

    realm {
        syncEnabled = false
    }

    dexOptions {
        javaMaxHeapSize "4g"
    }

    compileSdkVersion rootProject.ext.compileSdkVersion

    defaultConfig {
        applicationId "example.com"
        minSdkVersion rootProject.ext.minSdkVersion
        multiDexEnabled true
        versionCode mVersionCode
        versionName mVersionName
        vectorDrawables.useSupportLibrary = true

    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    buildTypes {

        applicationVariants.all { variant ->
            variant.outputs.all {
                outputFileName = "${variant.name}-${variant.versionName}.apk"
            }
        }

        release {
            shrinkResources true
            minifyEnabled true
            useProguard true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

            lintOptions {
                disable 'MissingTranslation'
            }

            applicationVariants.all { variant ->
                variant.outputs.all {
                    outputFileName = "${variant.name}-${variant.versionName}.apk"
                }
            }

        }
        debug {
            shrinkResources true
            minifyEnabled true
            useProguard true
            debuggable true
            versionNameSuffix '-DEBUG'
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'debug-proguard-rules.pro'

            ext.enableCrashlytics = false
            crunchPngs false

        }
    }

    flavorDimensions "default"

    lintOptions {

        checkReleaseBuilds false

    }

    packagingOptions {
        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/dependencies.txt'
        exclude 'META-INF/LGPL2.1'
    }
    buildToolsVersion '28.0.2'
}

configurations {
    implementation.exclude group: "org.apache.httpcomponents", module: "httpclient"
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')

    implementation "com.android.support:appcompat-v7:$rootProject.appCompactLibraryVersion"
    implementation "com.android.support:support-compat:$rootProject.supportLibraryVersion"
    implementation "com.android.support:mediarouter-v7:$rootProject.supportLibraryVersion"
    implementation "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
    implementation "com.android.support:design:$rootProject.supportLibraryVersion"


    api 'com.squareup.retrofit2:retrofit:2.4.0'
    api 'com.squareup.okhttp3:okhttp:3.11.0'
    api 'com.squareup.okhttp3:logging-interceptor:3.10.0'
    implementation 'com.google.code.gson:gson:2.8.2'
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.squareup.retrofit2:adapter-rxjava:2.3.0'
    implementation 'com.android.support:multidex:1.0.3'
    implementation 'com.daimajia.easing:library:2.0@aar'
    implementation 'com.daimajia.androidanimations:library:2.3@aar'

    implementation 'com.akexorcist:googledirectionlibrary:1.0.5'
    implementation 'io.reactivex:rxandroid:1.2.1'
    implementation 'io.reactivex:rxjava:1.3.0'
    // Wifi hotspot library
    implementation 'cc.mvdan.accesspoint:library:0.2.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'org.jsoup:jsoup:1.10.3'
    api "com.airbnb.android:lottie:$rootProject.lottieVersion"
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    testImplementation 'junit:junit:4.12'
    implementation 'com.jakewharton:butterknife:8.8.1'

    debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
    releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'

    implementation 'com.googlecode.libphonenumber:libphonenumber:8.2.0'

    implementation "com.google.android.gms:play-services-base:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-cast-framework:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-auth:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-identity:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-awareness:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-cast:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-drive:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-location:$rootProject.playServicesVersion"
    implementation "com.google.android.gms:play-services-maps:$rootProject.playServicesVersion"

    implementation "com.google.firebase:firebase-core:$rootProject.firebaseVersionCore"
    implementation "com.google.firebase:firebase-perf:$rootProject.firebaseVersionPerf"
    implementation "com.google.firebase:firebase-messaging:$rootProject.firebaseVersionMessaging"
    implementation "com.google.firebase:firebase-analytics:$rootProject.firebaseVersionCore"


    api('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') {
        transitive = true
    }
    api('com.crashlytics.sdk.android:answers:1.4.1@aar') {
        transitive = true
    }
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
    api project(path: ':libraryBTHelper')
    api project(':bkk_rush')

    debugApi 'com.amitshekhar.android:debug-db:1.0.3'
    api "org.jdeferred:jdeferred-android-aar:1.2.6"
    implementation 'com.android.support:gridlayout-v7:27.1.1'
}

apply plugin: 'com.google.gms.google-services'

app / build.gradle 파일에서 몇 가지 상수 및 기타 민감한 정보를 생략했습니다.


build.gradle (app)을 게시 할 수 있습니까?
— Skizo-ozᴉʞS

Skizo-ozᴉʞS 프로젝트 build.gradle 파일 추가 @
— 유 페르난데스을


@alashow 이것은 다른 문제와 관련이 있습니다. 메시지 "API 'variant.getJavaCompile ()'은 폐기되었습니다."
— Vadim Kotov

16
안정적인 버전에도 문제가 있습니다
— kp91

답변:


286

최신 릴리스에서 문제가 해결되었습니다. 'io.fabric.tools:gradle:1.30.0'

두 gradle fabric 도구를 1.30.0으로 업데이트하십시오

buildscript {
  // ... repositories, etc. ...

   dependencies {
       // ...other dependencies ...
       classpath 'io.fabric.tools:gradle:1.30.0'
   }
}

자세한 내용은 https://github.com/firebase/firebase-android-sdk/issues/198#issuecomment-473435453


프로젝트 레벨과 앱 모두 build.gradle에서 변경하십시오.
— RJB

2
버전 1.28.0에서 내 문제가 해결되었습니다. 현재 버전은 1.29.0 docs.fabric.io/android/changelog.html#fabric-gradle-plugin
— Alexander Hartmann 10

여기 변경점은 다음과 같습니다 docs.fabric.io/android/changelog.html#march-15-2019
— DSchmidt

나는 아직도이 경고를 받고 있어요 classpath 'io.fabric.tools:gradle:1.31.0'와 implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'. 모든 경우에 다시 고장 났거나 해결되지 않았습니다.
— 유전자 S

이 패브릭 도구를 어디에서 구할 수 있습니까? 난 단지 1.25.4 찾을 수 있습니다 mvnrepository.com/artifact/io.fabric.tools/gradle
— 클런 젊은

248

편집하다

이 문제는 Fabric 1.28.0 에서 수정되었습니다 . 당신의에서 build.gradle프로젝트 레벨의 다음 줄을 추가합니다 :

classpath 'io.fabric.tools:gradle:1.28.1'

이전 답변

Android Studio를 3.3.0으로 업데이트 한 후에 발생합니다. apply plugin: 'io.fabric'원인입니다. 이 문제에 대한 버그 보고서를 Firebase 팀에 보냈습니다.

3 가지 옵션이 있습니다.

  • 다음 버전의 Fabric 플러그인이 릴리스 될 때까지 기다리십시오. 여기 에서 최신 버전을 확인 하십시오 .

  • Android Studio 3.2.1로 다운 그레이드합니다 .

  • io.fabric플러그인을 주석 처리하십시오 .

에서 build.gradle앱의 모듈 :

apply plugin: 'com.android.application'
// apply plugin: 'io.fabric' <== this plugin causes the error

그러나이 오류가 발생하더라도 프로젝트를 빌드하고 실행할 수 있습니다. 그냥 무시해


2
Firebase로 연 버그 보고서 또는 문제에 링크 할 수 있습니까? 나는 그것을 높이고 싶다.
— yuval

8
io.fabric플러그인 을 사용해야하는데 이것을 바꾸지 않고 어떻게이 경고를 제거 할 수 있습니까?
— 0xAliHn

16
이것이 가능한 해결책이 아닌 원인입니다.
— Daniel Wilson

1
그들은 2019 년 말까지 사용할 수 있다고 말합니다. 지금은 사용하고 있습니다. 어떤 일이 발생하는지 볼 것입니다)
— support_ms

4
다운 그레이드하는 이유는 무엇입니까? 말이되지 않는다! 그것은 경고 일 뿐이며 아직 제거되지 않았으며 프로젝트를 만들 수 있습니다 (2019 년 전체). 나는 그들이 올해에 그것을 고칠 것이라고 믿는다
— user25

60

application build.gradle에서 안정된 gradle 버전으로 다운 그레이드하십시오.

classpath 'com.android.tools.build:gradle:3.2.1'

Android Studio를 3.3으로 업데이트 한 후에 문제가 해결 될 때까지 임시 솔루션입니다!

편집 : 당신은 당신의 안드로이드 스튜디오를 다운 그레이드 할 필요가 없습니다!


2
그런 다음 Android Studio 3.2.1로 다운 그레이드해야합니다. 어쨌든 감사합니다
— Rubén Viguera

Android Studio (AS)를 버전 3.3으로 업그레이드 한 후 동일한 문제가 발생했습니다. Gradle을 버전 4.6으로, Android Gradle Plugin을 버전 3.2.1로 다운 그레이드하여 Gradle 동기화를 다시 작동 시켰습니다.이 버전은 AS 업데이트 이전에 사용했던 버전이었습니다. gradle 및 플러그인의 버전을 수정하는 방법이 확실하지 않은 경우 여기 에서 표를 찾으십시오 .
— Rabie Jradi

6
제안에 대한 감사의
— Sid

3
당신은 당신의 안드로이드 스튜디오를 다운 그레이드 할 필요가 없습니다 @ RubénViguera
— 아 메르 알 Ziebak

1
답변에 언급 된대로 gradle 버전 이외의 다른 것을 다운 그레이드 할 필요가 없습니다. 이것은 정답입니다.
— MD Danish Ansari

16

업데이트 오늘 부터이classpath 'io.fabric.tools:gradle:1.28.0' 문제를 해결 하는 데 사용할 수 있습니다 !

앱 gradle 파일에서 Crashlytics의 플러그인 io.fabric을 주석 처리 하면 일시적으로 작동 한 경우

//apply plugin: 'io.fabric'

그런 다음 Project gradle 파일에서 fabric gradle 종속성을 업그레이드하면 문제가 영구적으로 해결됩니다.

classpath 'io.fabric.tools:gradle:1.27.0'

NB : 경고는 제거하지 않지만 AS3.3 +에서 Crashlytics를 사용할 수 있습니다


@RJB Crashlytics를 사용하고 있습니까? 프로젝트에서 제거하면 작동합니까? 그렇다면 문제를 해결해야합니다. 그러나 여전히 경고 메시지가 표시 될 수 있지만 프로젝트가 컴파일되고 apk를 안전하게 생성 할 수 있습니다.
— 113408

예. 나는 여전히 경고를 받고 있음을 의미합니다.
— RJB

op와 다른 사람들 (나를 포함하여) 은이 문제가 있었고 프로젝트를 crashlytics활성화 하여 컴파일 할 수 없었습니다 . 따라서 Crashlytics를 유지하고 계속 자극을 주려면 위에서 언급 한 업데이트가 여전히 "경고"를 유발하더라도 사용할 수 있습니다.
— 113408

13

실제 문제가 무엇인지 모르지만 프로젝트 해결 문제에서 crashlytics 관련 종속성을 주석 처리하십시오.


11

Crashlytics의 버그로 확인되었으며 현재 작업 중입니다.

https://issuetracker.google.com/issues/116408637

Google 담당자로부터 인용 한 내용 :

je ... @ google.com # 23 2019 년 1 월 23 일 01:40 AM
안녕 모두,

양해 해 주셔서 감사합니다.

모든 경우의 버그는 crashlytics에서 발생하는 것으로 보이며 버그를 제기했습니다.

난 당신이 상태를 업데이트 유지합니다.

나를 위해 디버그 응용 프로그램은 Crashlytics 또는 Fabric을 주석 처리하지 않고 경고를 실행하고 무시하면 장치에서 정상적으로 작동합니다. 나는 생산을 시도하지 않았습니다.

최신 정보:

Google Issue Tracker는 모든 문제가 Crashlytics에서 왔기 때문에이 문제를 해결하지 않음 (불가능)으로 표시했으며 Crashlytics 팀에서 수정했습니다 (동일한 Google 직원 임에도 불구하고).

Crashlytics 업데이트를 위해이 링크를 따라가는 것이 좋습니다.

https://github.com/firebase/firebase-android-sdk/issues/198

참고 : Craslytics를 주석 처리하지 않고 io.fabric.tools:gradle:1.26.0과 함께 Android Studio 3.3을 계속 사용하고 있으며 디버그 앱에서 제대로 작동합니다.

최신 정보:

프로덕션 / 릴리스 버전 앱에서 제대로 작동하는지 확인할 수 있습니다. 작동하는지 어떻게 알 수 있습니까? 충돌 보고서를 다시 보냈기 때문에 -_- '

어쨌든 경고를 무시하고 결국 수정해야합니다.

Aww, 방금 직물 1.28.0으로 고정되었다는 것을 읽으십시오. :)


8

2019/01/24의 최신 뉴스

여기에 이미지 설명을 입력하십시오

https://issuetracker.google.com/issues/116408637 여기에 정보

Crashlytics가 해결책을 제시 할 때까지 기다려야합니다. 여기 GitHub 문제가 열렸습니다.

https://github.com/firebase/firebase-android-sdk/issues/198

io.fabric 플러그인을 언급하지 않기 위해 지금 사용하고있는 유일한 방법 은 내 gradle을 다운 그레이드하고 패브릭 클래스 경로를 업그레이드하는 것입니다 (이는 프로덕션 앱에서 작동합니다)

 dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath 'com.google.gms:google-services:4.2.0'
        classpath 'io.fabric.tools:gradle:1.27.0'

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

방법에 대해 우리는 단지 추가 -dontwarn com.crashlytics.android.Crashlytics에proguard-rules.pro
— Mustansir

1
당신은 문제가 여전히 있음을 수행하여 경고를 제거하고 당신은 결국 다시 문제에 얻을 필요가있는 경우
— 가스통 Saillén

권리! 빌드를 컴파일하는 것은 임시 해결책이지만 모든 것을 다운 그레이드하는 것보다 훨씬 낫습니다.
— Mustansir

예, 경고를 무시하면 업데이트 된 버전을 유지할 수 있지만 작동하지 않습니다.
— Gastón Saillén

@ Mustansir, 그것은 gradle 관련 문제이며 Proguard와 관련이 없다고 생각합니다.
— WindRider


3

이슈 트래커는 "게으른 작업 구성"을 참조 할 수 있습니다.

그것은 최소한 작업 구성 회피가 제안하는 것입니다.

그러나 하나의 가능성이 폐기 방법의 접근 방지 할 수 BaseVariantImpl, variant.outputs.all접속 (내부) 메소드하지 않을 - 또는 검사는 액세스를 방지 할 수있다; 또는 이름으로 변형에 액세스 할 때; 또는 변형에 대한 외부 기본 빌드 작업을 비활성화합니다. 또한 단일 변형 프로젝트 동기화 옵션을 참조하십시오 .

또는 빌드 도구를 기다리 3.3.0-alpha12거나 3.3.0-beta1... 이건 아니기 release candidate때문에 다른 버그 보고서를 제출하는 데 사용하는 것을 제외하고 많은 시간을 투자 하는 것은 의미가 없습니다 .

새로운 빠른 피드백 빠른 피드백버튼은 여전히 ​​가장 유망합니다.


예,이 유형의 오류는 이전 빌드 도구에는 없었습니다. 다음 RC는 그것을 고칠 수 있습니다
— d4c0d312

7
릴리스에서 수정되지 않았습니다
— Juan Diaz

developer.android.com/studio/releases/gradle-plugin#3-3-0 ... 추가 위치 android.debug.obsoleteApi=true를 확인하십시오. 이름이 Provider추가 된 몇 가지 메소드의 이름이 바뀌 었습니다 .
— Martin Zeitler

1
프로젝트 gradle.properties의 @SergeyNarozhnyy
— sigitbn

1
@SergeyNarozhnyy 3.3.0변형 API가 변경 되었으므로 릴리스에서 몇 가지 문제가 발생했습니다. 최근의 토론을 연결할 수 있습니다 stackoverflow.com/questions/54206898/...을 (답변이로 요약 추가).
— Martin Zeitler

3

나를 위해 다음 단계를 수행했습니다. 1. 프로젝트 수준 build.gradle에서 Gradle 종속성을 업그레이드합니다.

        classpath 'io.fabric.tools:gradle:1.28.0'
  1. 앱 레벨 build.gradle의 'com.android.application'플러그인을 아래에 적용 하십시오.

        apply plugin: 'io.fabric'
  2. 프로젝트를 gradle 파일과 동기화하십시오.


2

이는 Android Studio가 Android Studio 3.2.0에서 Android Studio 3.3.0으로 업데이트 되었기 때문에 발생합니다. IO.Fabric의 Gradle 종속성 (프로젝트)을 업데이트하십시오. 처럼:

classpath 'io.fabric.tools:gradle:1.27.1'

Kotlin 버전을 다음과 같이 업데이트하십시오.

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.20"

이 문제가 해결됩니다. 감사


1
감사. 당신의 대답이 도움이되었습니다.
— André Luiz Reis

@Sean Kotlin 및 io febric를 사용하는 경우 클래스 경로 버전을 다운 그레이드하는 데 다르게 작동합니다.
— Rahul Kushwaha

Crashlytics 빌드 ID가 없습니다. Crashlytics 툴링이 앱의 빌드 구성에 없을 때 발생합니다
— Vishal Patoliya ツ

1

빌드 로그는 이것을 디버깅하는 방법을 인쇄합니다. 특히 빌드를 실행해야합니다.이 -Pandroid.debug.obsoleteApi=trueAPI는 더 이상 사용되지 않는 API에 대한 호출의 스택 추적을 인쇄하고 호출하는 플러그인 / 코드를 파악할 수 있습니다.

그것이 코드 인 경우 -새로운 제공자 API를 사용 하십시오 ( Lazy Task Configuration doc 읽기 )

다른 플러그인에서 온 경우 — 스택 추적 및 경고 메시지로보고하고 패치를 제출하십시오. 이 경우와 마찬가지로 io.fabric문제 와 관련이 있습니다.


1

이것은 오늘 출시 된 Fabric gradle 플러그인 1.28.0의 최신 릴리스에서 수정되었습니다. 이것을 최상위 build.gradle에 넣으십시오.

buildscript {
// ... repositories, etc. ...

dependencies {
    // ...other dependencies ...
    **classpath 'io.fabric.tools:gradle:1.28.0'**
}

0

프로젝트를 열었을 때 Run migrations오른쪽 하단 모서리에 표시된 버튼을 눌렀습니다 Android Studio. 마이그레이션이 수행되었고 Crashlytics종속성 을 주석 처리하지 않고 문제점이 해결되었습니다 .

여기에 이미지 설명을 입력하십시오


0

모듈 build.gradle파일의 소스 호환성 을 Java 8로 변경 하면 문제가 해결됩니다.

compileOptions {
    sourceCompatibility 1.8
    targetCompatibility 1.8
}

해당 줄을 추가 한 후 프로젝트를 다시 빌드하십시오


최상위 build.gradle또는 모듈 수준 (/ app)?
— Meow Cat 2012 년

모듈 수준 (응용 프로그램)
— jesses.co.tt 19

0

이것은 오류를 수정합니다 : 작업 표시 줄에서 도구-> Kotlin-> 프로젝트에서 Kotlin 구성을 클릭하십시오


0

필자의 경우 io.fabric플러그인 을 사용해야 했고 해결책은 최신 패브릭 도구 gradle 버전으로 업데이트하는 것입니다.

classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'io.fabric.tools:gradle:1.27.0'

0

Fabric 플러그인을 계속 적용해야하는 경우 임시 해결책은 프로젝트 레벨에서 이전 버전의 gradle로 돌아가는 것입니다.

클래스 경로 버전을로 변경하십시오 com.android.tools.build:gradle:3.2.1.


0

최신 gradle(내 경우에는 3.3.2) 버전 및 Fabric.io플러그인에 문제가있었습니다. 이제 새 버전으로 해결됩니다. 사용자는이를 최상위 레벨로 가져야합니다 build.gradle.

buildscript {
   // ... repositories, etc. ...

    dependencies {
        // ...other dependencies ...
        classpath 'io.fabric.tools:gradle:1.28.0'
    }
}

0

수정 사항은 루트 빌드 gradle 파일을 최신으로 업데이트합니다. 그리고이 대답은 이제 사실입니다. 다시 한 번 gradle 및 android SDK로 새로운 변경 사항이 구현됩니다. 때때로 답변은 시간에 따라 다를 수 있습니다.

repositories {
    maven { url "https://jitpack.io" }
    maven {
        url 'https://maven.fabric.io/public'
    }
    google()
    jcenter()

}
dependencies {

    classpath 'com.android.tools.build:gradle:3.5.0'
    classpath 'com.google.gms:google-services:4.3.0'
    classpath 'io.fabric.tools:gradle:1.30.0'
}

-7

우선 이것은 오류 가 아닙니다

그것의 경고

업데이트 3.0을 3.3.0으로 업데이트 할 때 표시됩니다. io.fabric 때문에 종종 발생하므로 경고가 여전히 나타나는 업데이트 패브릭 현재 버전이 'io.fabric.tools:gradle:1.27.1'일 때까지 기다리십시오.

당사 사이트를 사용함과 동시에 당사의 쿠키 정책과 개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.