Cannot access ActivityCompatApi23 class

后端 未结 4 1862
一向
一向 2020-12-20 15:26

I am having runtime problems with my gradle file. I added this compile \'com.google.android:flexbox:0.3.1\' as a compile time dependency to my Gradle file. I en

4条回答
  •  孤城傲影
    2020-12-20 15:49

    You have declared compileSdkVersion equal to 25, whereas 0.3.1 version of flexbox layout uses support libs version 26.0.0 - that's a problem, compileSdkVersion should match support libs major version.

    Either upgrade your project to 26 or use a version of flexbox layout that relies on sdk 25, which seems to be v0.2.7:

    compile 'com.google.android:flexbox:0.2.7'
    

提交回复
热议问题