Cannot resolve symbol AppCompatActivity - Support v7 libraries aren't recognized?

后端 未结 25 1672
情深已故
情深已故 2020-12-07 18:39

I\'m trying to figure out why the heck my Android studio isn\'t recognizing the AppCompat v7 library correctly. The import statement below shows up as gray and says there\'s

25条回答
  •  既然无缘
    2020-12-07 19:00

    I had these settings in 'gradle.properties'

    android.useAndroidX=true # Automatically convert third-party libraries to use AndroidX android.enableJetifier=true

    It is better to use androidx library. So I changed all imports to androidx library and project compiled. visit http://developer.android.com/jetpack/androidx for information.

提交回复
热议问题