无法解决:com.android.support:appcompat-v7:28.0 [英] Failed to resolve: com.android.support:appcompat-v7:28.0

查看:643
本文介绍了无法解决:com.android.support:appcompat-v7:28.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在项目的build.gradle(模块)中使用com.android.support:appcompat-v7:28.+时,它可以正常工作.但是当我只使用com.android.support:appcompat-v7:28而不使用.+时,它给了我一个错误:

When I use com.android.support:appcompat-v7:28.+ in my project's build.gradle(module) it works without any error. But when I just use com.android.support:appcompat-v7:28, just without .+, it gives me an error:

无法解决:com.android.support:appcompat-v7:28.0

Failed to resolve: com.android.support:appcompat-v7:28.0

只是没有.+结尾.我之前添加过Maven,但结果是相同的.有解决的办法吗?

Just without the .+ end of it. I added maven before but the result was the same. Any idea to solve it?

推荐答案

28.0.0是支持库的最终版本. Android已迁移到AndroidX.要使用最新的android库,请迁移到AndroidX

28.0.0 is the final version of support libraries. Android has migrated to AndroidX. To use the latest android libraries, Migrating to AndroidX


版本28.0.0-rc0228.0.0现在可用.

Versions 28.0.0-rc02 and 28.0.0 are now available.

Google Maven 28.0版本>.仅28.0.0-alpha128.0.0-alpha3.只需将其更改为以前版本或以前的版本即可,即使用.+进行更改,即表示28主要版本下的任何版本.

I don't see any 28.0 version on Google Maven. Only 28.0.0-alpha1 and 28.0.0-alpha3. Just change it to either of those or how it was previously, i.e., with .+ which just means any version under 28 major release.

对于Alpha Appcompat版本28.+更有意义.

For an alpha appcompat release 28.+ makes more sense.

这篇关于无法解决:com.android.support:appcompat-v7:28.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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