Randa Omar Fahmy
Randa Omar Fahmy

Reputation: 321

Android Studio Canary 4 puts red line under any method from class AppCompatActivity although it compiles

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

Answers (2)

The Dongster
The Dongster

Reputation: 344

I fixed it by putting google() inside "repositories" like below.

buildscript {
    repositories {
        google() <---
        jcenter()
    }

Upvotes: 1

reinaldo
reinaldo

Reputation: 5928

Go to File -> Invalidate Caches and Restart. See if it works, it did for me.

Upvotes: 0

Related Questions