Cannont解析符号的JSONObject(Android的工作室) [英] Cannont resolve symbol JSONObject (Android Studio)
问题描述
我在这呆了两天。我可以与其他PC工作,但我的Android工作室doesn't导入库,我花了两个捕获:
哟可以在第一图片中看到,Android的工作室自动填充我的路线:
不过:</ P>
我读到的JSONObject在Android开发者(这里)和Android的包括此库。我也试图从组织导入其他库,但只是正常工作其中的两个:
他们...我想这可能是Android的工作室的问题,我重新安装了IDE,错误仍然存在。
我试图导入库中gradle这个(这是的build.gradle模块:应用程序):
我和其他的PC工作,效果很好,但我需要在我的电脑来解决这个问题。
请,任何帮助将非常感激。
I'll应对未来,如果有人有相同的错误:
我这样做(Thaks到Bigdestroyer):
文件 - &GT;无效缓存/重新启动 - &GT;废止和重新启动
您可以尝试删除〜/ .gradle /缓存
目录强制重新下载的依赖性。
现在的作品完美。谢谢!!!!
I have spent two days in this. I can work with other PC, but my Android Studio doesn´t import the library, I took two captures:
As yo can see in the first picture, Android Studio autocompletes my line:
However:
I was reading about JSONObject in Android Developers (here) and Android include this in library. I also have tried to import other libraries from "org", but just works fine two of them:
Them... I was thinking this might be a problem of Android Studio, and I reinstalled the IDE, the error persists.
And I have tried to import the library in the gradle (this is in build.gradle module: app):
I was working with other PC, it works well, but I need to fix this in my computer.
Please, any help will be grateful.
I´ll respond to the future, if someone has the same error:
I did this (Thaks to Bigdestroyer):
File -> Invalidate caches/Restart -> Invalidate and Restart
You can try to delete ~/.gradle/caches
directory to force re-download the dependencies.
Now its works perfect. Thanks !!!!
这篇关于Cannont解析符号的JSONObject(Android的工作室)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!