【发布时间】:2018-03-05 10:18:40
【问题描述】:
我想在 git 学习并为穿梭应用程序做出贡献:
https://github.com/timusus/Shuttle
我是经验丰富的开发人员,但我似乎无法编译此存储库。
使用: Android Studio 3.0 beta 6
分支开发
1 .当我尝试进行 gradle 同步时收到此错误:
Warning:One of the plugins you are using supports Java 8 language features. To try the support built into the Android plugin, remove the following from your build.gradle:
apply plugin: 'me.tatarka.retrolambda'
To learn more, go to https://d.android.com/r/tools/java-8-support-message.html
Error:Failed to resolve: leakcanary-android
Error:Failed to resolve: recyclerview-fastscroll
2 。例如,项目以我不理解的方式使用依赖项:
compile libs.cardView
compile libs.design
compile libs.palette
compile libs.prefCompat
compile libs.prefCompatv14
compile libs.recyclerView
compile libs.supportv4
compile libs.firebaseCore
我知道这里的名称是常量,但是我什么时候可以看到这些键的值?
【问题讨论】:
-
1) Don't use beta 3。尽快升级。 2)你需要 Java 8(意味着已经安装了它) 3)将 retrolambda 添加到你的依赖项中,看看它是否有效
-
谢谢,我正在使用我想念的 beta6。retrolambda 已经存在于一些库中。我想我支持 java 8
标签: android android-studio gradle compiler-errors dependencies