久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

警告:API 'variant.getJavaCompile()' 已過(guò)時(shí),已替

WARNING: API #39;variant.getJavaCompile()#39; is obsolete and has been replaced with #39;variant.getJavaCompileProvider()#39;(警告:API variant.getJavaCompile() 已過(guò)時(shí),已替換為 variant.getJavaCompileProvider()) - IT屋-程序員軟件
本文介紹了警告:API 'variant.getJavaCompile()' 已過(guò)時(shí),已替換為 'variant.getJavaCompileProvider()'的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問題描述

同步 Gradle 時(shí)突然出現(xiàn)此錯(cuò)誤:

Suddenly when Syncing Gradle, I get this error:

警告:API 'variant.getJavaCompile()' 已過(guò)時(shí)且已被替換為variant.getJavaCompileProvider()".它將在 2019 年底被刪除.有關(guān)詳細(xì)信息,請(qǐng)參閱 https://d.android.com/r/tools/任務(wù)配置避免受影響的模塊:app

WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'. 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

我有這個(gè)應(yīng)用模塊的 build.gradle:

I've got this build.gradle for the app module:

apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'

apply plugin: 'io.fabric'

android {
    compileSdkVersion 28
    buildToolsVersion "28.0.2"
    defaultConfig {
        applicationId "..."
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "..."
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        versionNameSuffix = version_suffix

        [...]
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

            [...]
        }
        debug {
            [...]
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.61"
    implementation 'androidx.appcompat:appcompat:1.0.0-rc02'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation "com.android.support:preference-v7:28.0.0"
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
    implementation 'com.google.android.material:material:1.0.0-rc02'

    [...]
}

我可以正確編譯應(yīng)用程序,但有點(diǎn)麻煩,而且我認(rèn)為,某些東西將在 2019 年底停止工作.關(guān)于它是什么以及如何解決它的任何想法?

I can compile the app correctly, but it's a bit bothering, and as I see it, something will stop working at the end of 2019. Any ideas of what is it and how to solve it?

推薦答案

此問題現(xiàn)已通過(guò)更新 Fabric Gradle 版本 1.30.0 得到修復(fù):

This issue is fixed now with update Fabric Gradle version 1.30.0:

更新發(fā)布:2019 年 3 月 19 日

Update release: March 19, 2019

請(qǐng)查看此鏈接:https://docs.fabric.io/android/changelog.html#march-15-2019

請(qǐng)?jiān)陧?xiàng)目級(jí) Gradle 中更新您的類路徑依賴項(xiàng):

Please update your classpath dependency in project level Gradle:

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

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

這篇關(guān)于警告:API 'variant.getJavaCompile()' 已過(guò)時(shí),已替換為 'variant.getJavaCompileProvider()'的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現(xiàn) IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當(dāng)前風(fēng)味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復(fù)“意外元素lt;查詢gt;在“清單中找到錯(cuò)誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風(fēng)味庫(kù)的多風(fēng)味應(yīng)用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運(yùn)行時(shí)有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫(kù)的傳遞依賴)
主站蜘蛛池模板: 亚洲 欧美 综合 | 在线视频中文字幕 | 日韩在线视频一区 | 久久久久国产精品一区二区 | 91精品在线看 | 国产免费一区二区三区 | 午夜精品视频在线观看 | 国产一区二区三区免费 | 精品一区二区电影 | 免费观看黄 | 日韩视频在线免费观看 | 天天综合国产 | 一区免费 | 一级片免费在线观看 | 中文字幕在线观看一区 | 国产一区二区在线播放 | 国产精品久久久久久久久久久新郎 | 日韩在线精品视频 | 美女一级毛片 | 狠狠操狠狠干 | 色噜噜狠狠色综合中国 | 成人深夜福利 | 伊人婷婷 | 韩日av片 | 国产免费一区二区三区网站免费 | 九九九久久国产免费 | 一区二区精品 | 国产精品99久久久久久www | 国产精品国产自产拍高清 | 91精品久久久久久久久久 | 国产日韩欧美中文字幕 | 99热国产免费| 久久久久免费观看 | 久久r久久 | 日本午夜精品 | h视频亚洲 | 日本在线网站 | 人人性人人性碰国产 | 一区二区在线不卡 | 日本电影韩国电影免费观看 | 国产精品久久久久久 |