Android studio 3 不搜索库依赖 [英] Android studio 3 does not search for libraries dependencies

查看:24
本文介绍了Android studio 3 不搜索库依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Android 工作室停止搜索库依赖项.我知道通过 build.gradle 添加依赖项更好更快,但有时从 android studio 的内部搜索窗口搜索比谷歌搜索更容易.例如,这就是改造搜索结果的样子

My Android studio stopped searching for library dependencies. I know that it's better and faster to add dependencies through build.gradle but sometimes it's easier to search from inner search window of android studio than googling it. For example, this is how retrofit search results looks like

这个bug是升级到Android studio 3后出现的

This bug appeared after upgrade to Android studio 3

有谁知道如何解决这个问题?

Does anyone know how to solve this problem?

推荐答案

我不知道现在是否实际,但尝试更新 Android Strudio.然后在项目结构中输入最新版本的 gradle -> 在 Gradle 版本字段中.我已经用 4.4 Gradle 版本修复了它.这可能需要一段时间(通过单击立即尝试"并多次重新启动工作室来重建当前项目),但最后您有机会修复该问题并在依赖项中搜索库.我不知道它是否会帮助你,但它帮助了我.

I don't know if it actual now, but try to update Android Strudio. After that type in the latest version of gradle in Project Structure -> in field Gradle Version. I've fixed it with 4.4 Gradle version. It may take a while (rebuilding current project by cliking "try now" and restarting studio several times), but at the end you have chance to fix that and search libraries in dependencies. Idk if it will help you, but it helped me.

这篇关于Android studio 3 不搜索库依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆