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

后端 未结 4 1394
独厮守ぢ
独厮守ぢ 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:29

    If this error occurs due to Guava, then the solution, as per the official documentation from Google is: https://github.com/google/guava

    Change the dependency to (version is current as of this writing):

    api 'com.google.guava:guava:27.0-android'
    

    This fixed the issue for me.

提交回复
热议问题