अचानक जब सिंकिंग ग्रेड, मुझे यह त्रुटि मिलती है:
चेतावनी: एपीआई 'variant.getJavaCompile ()' अप्रचलित है और इसे 'variant.getJavaCompileProvider ()' से बदल दिया गया है। इसे 2019 के अंत में हटा दिया जाएगा। अधिक जानकारी के लिए, https://d.android.com/r/tools/task-configuration-avoidance प्रभावित मॉड्यूल: ऐप देखें
मुझे यह build.gradleऐप मॉड्यूल के लिए मिला है :
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'
[...]
}
मैं ऐप को सही तरीके से संकलित कर सकता हूं, लेकिन यह थोड़ा परेशान करने वाला है, और जैसा कि मैं इसे देखता हूं, 2019 के अंत में कुछ काम करना बंद कर देगा। कोई भी विचार है कि यह क्या है और इसे कैसे हल किया जाए?
