为什么更新android gradle后出现错误?

时间:2019-02-05 06:06:59

标签: android gradle

在android studio中更新我的gradle之后,我报错了

为什么我的代码不起作用?

implementation fileTree(include: ['*.jar'], dir: 'libs')
 implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
    implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.google.firebase:firebase-database:11.8.0'
    implementation 'com.google.firebase:firebase-auth:11.8.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.android.support:cardview-v7:28.0.0-alpha1'

我尝试了1.3.0,但仍然出现此错误

  

错误:无法解决:   org.jetbrains.kotlin:kotlin-stdlib-jre7:1.3.0

1 个答案:

答案 0 :(得分:2)

  

错误:无法解决:org.jetbrains.kotlin:kotlin-stdlib-jre7:1.3.0

@TypeConverters(Converters.class)已过时。请改用kotlin-stdlib-jre7