After renaming application package name, Android Studio displayed this error can\'t resolve symbol AppCompatActivity
Things I tried: <
When all your dependencies and SDK tools are in-line and it still is giving sync error. Add this code in your build.Gradle and sync it:
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
Also like to point, before doing this I tested all tricks mentioned here. But only this worked for my Android (2.3) - Feb'17 release.