Bigkoo / Android-PickerView

This is a picker view for android , support linkage effect, timepicker and optionspicker.(时间选择器、省市区三级联动)
Apache License 2.0
13.44k stars 3.45k forks source link

什么时候把compile改为最新的implementation或api,最新的Gradle已经不支持了 #746

Closed Thor-jelly closed 5 years ago

Thor-jelly commented 5 years ago

Android Studio3.4 classpath 'com.android.tools.build:gradle:3.4.0' distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip

Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.

错误: 无法访问WheelView 找不到com.contrarywind.view.WheelView的类文件

smilingK commented 5 years ago

我的临时解决办法是 implementation ('com.contrarywind:Android-PickerView:4.1.7'){ exclude group: 'com.contrarywind' } implementation 'com.contrarywind:wheelview:4.0.9'

本地依赖 WheelView

xiaosong520 commented 5 years ago

@smilingK @Thor-jelly 下个版本会适配

ruanbaojun1105 commented 5 years ago

所以我还是回到了gradle 4.10.1

liangfengxixi commented 5 years ago

gradle 5.1.1的确出问题了,需要自己再引入一个依赖

Thor-jelly commented 5 years ago

回复有三种方法: 1.回到原来gradle的版本(我用的这种) 2.移除当前依赖中的compile,在本地引入implementation 3.等新版本