Default or static interface method used without --min-sdk-version >= 24

后端 未结 4 1397
独厮守ぢ
独厮守ぢ 2021-01-04 00:07

Why do we get this error in Android Studio 3.0 RC1?

 com.android.dx.cf.code.SimException: 
default or static interface method used without --min-sdk-version          


        
4条回答
  •  不知归路
    2021-01-04 00:34

    From guava v24 we have two alternative versions: Android or JRE. So, in this case you need to include the dependency as:

    compile 'com.google.guava:guava:24.1-android'
    

    Find all the details within the repo: https://github.com/google/guava

提交回复
热议问题