Could not set unknown property 'useAndroidX' for object of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension

前端 未结 1 1728
既然无缘
既然无缘 2021-01-01 17:30

I want to add a library that i\'ve found on github but it required androidx.I found out that i should put these:

android.useAndroidX=true
android.enableJetif         


        
相关标签:
1条回答
  • 2021-01-01 18:08

    Those two properties need to be defined in a gradle.properties file at the root of your project, not in your build.gradle.

    0 讨论(0)
提交回复
热议问题