Cannot resolve symbol AppCompatActivity - Support v7 libraries aren't ...
appcompatactivity not resolved. Solution. Modify top level build.gradle file to add following lines: NOTE: Make sure you are using same version for "appcompact" as that of "compileSdkVersion" . e.g. here we had compileSdkVersion as 27, hence appcompact version is 27.0.2. apply plugin: 'com.android.application' android { compileSdkVersion 27. }
java - how can import android.support.v7.app.Appcompatactivity in ...
If you are facing the issue of "Cannot resolve symbol AppCompatActivity" and the support v7 libraries are not recognized, it could be due to a few reasons. Here are some steps you can take to resolve the issue: Check Dependencies: Ensure that you have the correct dependencies in your build.gradle file.
Maven Repository: com.android.support » appcompat-v7 » 28.0.0
compile 'com.android.support:appcompat-v7:28..0' Support library was discontinued. So, don't expect any new release after 28.0.0. Google is now supporting AndroidX. In a certain (and basic) way, is the same thing. So, you may want to consider to migrate your app to Android X in order to get support from Google. More info about Android X:
Android appcompat-v7, latest version? - RemObjects Talk
implementation 'com.android.support:appcompat-v7:28..0' : All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 26.1.0. Examples include. com.android.support:animated-vector-drawable:28... and.