Reputation: 321
I have update Android Studio to the new Canary version (canary 4), and it puts a red line under any method from AppCompatActivity since all my activities extends that class although it compiles and runs very good but i need to get rid of these red lines that are meaningless.
Upvotes: 1
Views: 187
Reputation: 344
I fixed it by putting google() inside "repositories" like below.
buildscript {
repositories {
google() <---
jcenter()
}
Upvotes: 1
Reputation: 5928
Go to File -> Invalidate Caches and Restart. See if it works, it did for me.
Upvotes: 0