【问题标题】:Why After update android gradle i got error? [closed]为什么更新android gradle后出现错误? [关闭]
【发布时间】:2019-02-05 06:06:58
【问题描述】:

在 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

【问题讨论】:

  • 错误是什么?
  • 冲突这些版本。
  • kotlin_version的版本是多少?
  • 请添加项目gradle文件
  • 您没有显示任何错误。

标签: android gradle


【解决方案1】:

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

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

【讨论】:

  • 谢谢。你能帮我解决这个警告吗?警告:配置“编译”已过时,已替换为“实施”和“API”。它将在 2018 年底被删除。有关更多信息,请参阅:d.android.com/r/tools/update-dependency-configurations.html 受影响的模块:app
  • 如果您已经更改了 build.gradles 中的 compile 依赖项,请查看您的 gradle 插件 - 其中一个可能仍在注入 compile 依赖项。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-03-11
  • 2017-08-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多