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

后端 未结 25 1484
情深已故
情深已故 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:12

    androidX users

    Change your minSdkVersion to api level 21.

    like this minSdkVersion 21 or build your app with compileSdkVersion 28 and also change targetSdkVersion to targetSdkVersion 28

    and you will see v7 error will gone. After that if you face a problem with creating Toolbar or other widget. press Alt+Enter and create a method for it.

提交回复
热议问题