我已经用实现替换了所有编译,但是不知道它显示在哪个编译器中,下面是警告。请帮助我重看这些问题。 我也不知道它在说哪个variant.getJavaCompile()。 请在这个问题上为我提供帮助。谢谢您。
buildscript {
repositories {
jcenter()
google()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.30.0'
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
classpath 'com.google.gms:google-services:4.3.2'
// To =>
classpath 'com.google.gms:google-services:4.3.2'
classpath 'com.android.tools.build:gradle:3.4.2'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'com.jakewharton.hugo'
apply plugin: 'com.google.gms.google-services'
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url 'https://maven.fabric.io/public' }
maven { url "https://jitpack.io" }
}
configurations {
playImplementation
fdroidImplementation
}
android {
compileSdkVersion 29
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "org.nutritionfacts.dailydozen"
minSdkVersion 15
targetSdkVersion 29
versionCode 42
versionName "15.1"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
flavorDimensions "store"
productFlavors {
play {
dimension "store"
}
fdroid {
dimension "store"
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:25.4.0'
//noinspection GradleCompatible
implementation 'com.android.support:cardview-v7:25.4.0'
//noinspection GradleCompatible
implementation 'com.android.support:design:25.4.0'
implementation 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
playImplementation('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') {
transitive = true
}
implementation 'com.roomorama:caldroid:3.0.1'
implementation 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2'
implementation 'com.github.PhilJay:MPAndroidChart:v2.1.6'
implementation 'org.greenrobot:eventbus:3.0.0'
implementation 'com.jakewharton:butterknife:8.6.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
implementation 'com.google.code.gson:gson:2.8.2'
`enter code here`implementation 'com.jakewharton.timber:timber:4.5.1'
}
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.
To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
Affected Modules: app
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
Affected Modules: app
WARNING: Configuration 'debugCompile' is obsolete and has been replaced with 'debugImplementation' and 'debugApi'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
Affected Modules: app
我还在依赖关系中添加了一些类路径,但是它不起作用。 我认为该文件存在一些较大的问题。在此先感谢您的帮助。