简体   繁体   English

Android Studio 丢失了引用

[英]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今天当我打开我的项目时,android studio 没有找到事物的引用,昨天当关闭 Windows 更新时应用程序运行正确,当启动 Android Studio 更新时,我看到了一些关于 gradle 的东西,但把它放在本地/离线不起作用

Printscreen with the error有错误的打印屏幕

Most likely the problem is with Android Studio caches.最有可能的问题是 Android Studio 缓存。 Try "File" -> "Invalidate Caches / Restart...", and select "Invalidate and Restart".尝试“文件”->“使缓存无效/重新启动...”,然后选择“无效并重新启动”。

I had the same problem with my RecyclerViewAdapter and it resolved the problem by deleting "R.android.r".我的 RecyclerViewAdapter 也有同样的问题,它通过删除“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.我不确定这对我来说是否是特定情况,但看看您是否可以在导入部分中找到它。

尝试清理项目:Build -> Clean Project

Try to remove or rename the Android SDK folder and restart the Android Studio.尝试删除或重命名 Android SDK 文件夹并重新启动 Android Studio。 It will be recreated SDK folder.它将重新创建 SDK 文件夹。 And you can use it normally.并且可以正常使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM