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

后端 未结 4 1390
独厮守ぢ
独厮守ぢ 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条回答
  •  梦毁少年i
    2021-01-04 00:39

    I just found out that it works as expected when I activate the D8 dexer which is planned to be the default for Android Studio 3.1

    In the project gradle.properties, add:

    android.enableD8=true
    

    Now the code compiles as expected and I still get the expected linter messages.

提交回复
热议问题