Guilherme Gomes Zucco
Guilherme Gomes Zucco

Reputation: 35

Android Studio lost the References

Today when I open my project the android studio doesn't find the references of things, yesterday the app was running correcly when turn off the Windows had updated and when started Android Studio update too, I saw something about gradle but put it in local/offline doesn't works

Printscreen with the error

Upvotes: 2

Views: 1430

Answers (6)

CrackerKSR
CrackerKSR

Reputation: 1926

If suggested answers did not solve the problem then try this.

File > Repair IDE > Rescan Project

It will show action to perform which includes Rescan, Reopen, re-indexing project and invalidate cache & restart

Upvotes: 0

codeMonkey
codeMonkey

Reputation: 11

Try upgrading the grade plugin, then increase your compileSDKtarget version, then apply the Kotlin migration.

Lastly, Build your app These steps worked for me.

Upvotes: 1

Phuy Kong
Phuy Kong

Reputation: 21

I had the same problem with my RecyclerViewAdapter and it resolved the problem by deleting "R.android.r". I am not sure if this is a specific situation for me but see if you can find it within your import section.

Upvotes: 1

Thanh Tung
Thanh Tung

Reputation: 105

Try to remove or rename the Android SDK folder and restart the Android Studio. It will be recreated SDK folder. And you can use it normally.

Upvotes: 1

Timo Albert
Timo Albert

Reputation: 655

Most likely the problem is with Android Studio caches. Try "File" -> "Invalidate Caches / Restart...", and select "Invalidate and Restart".

Upvotes: 4

Karol Wojtulewicz
Karol Wojtulewicz

Reputation: 180

Try to clean the project: Build -> Clean Project

Upvotes: 1

Related Questions