[英]Unable to import jsoup in android studio
I keep getting the error Cannot resolve symbol 'jsoup'
when I try to do an import, but I already have the Implementation 'org.jsoup:jsoup:1.13.1'
in build.graddle (:app)
as a dependency当我尝试进行导入时,我不断收到错误Cannot resolve symbol 'jsoup'
,但我已经在build.graddle (:app)
中将Implementation 'org.jsoup:jsoup:1.13.1'
作为依赖项
The import that I have is import org.jsoup.*;
我的导入是import org.jsoup.*;
I should mention that I have looked at Failed to import jsoup library in android studio?我应该提一下,我看过Failed to import jsoup library in android studio?
Thank you.谢谢你。
It appears that I needed to manually sync the gradle file.看来我需要手动同步 gradle 文件。 If you are having the same problem you can manually sync it by hovering over Implementation 'org.jsoup:jsoup:1.13.1'
and click on the yellow light bulb on the side of android studio.如果您遇到同样的问题,您可以通过将鼠标悬停在Implementation 'org.jsoup:jsoup:1.13.1'
上手动同步它,然后单击 android 工作室侧面的黄色灯泡。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.