首页 > 解决方案 > 为什么更新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

标签: androidgradle

解决方案


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

kotlin-stdlib-jre7已被弃用。请kotlin-stdlib-jdk7改用。


推荐阅读