Android Studio 3.4.2:找不到support-core-ui任何解决方案均不起作用

问题描述 投票:0回答:1

我写Android项目20天前但是今天我决定开放维护项目我看到此错误:请查看此图片:图片1:错误日志:enter image description here

Android支持库在我的机器上安装了最新版本:图片2:已安装Android支持:enter image description here

我使用浏览器测试了该网址:Google删除此文件图片3:Google确实删除了此文件!enter image description here

如何解决此问题:1-使缓存无效/重启2-更改存储库优先级:

allprojects {
repositories {
    google()
    mavenCentral()
    jcenter()
    maven { url "https://jitpack.io" }
}

}3套构建工具到最新版本:

    buildToolsVersion = '29.0.2'

我不知道如何解决这个问题thx

android android-studio build.gradle android-build
1个回答
0
投票
好消息:)我通过以下方式解决了这个问题:首先,我将依赖性支持更新为版本28:

implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:design:28.0.0' implementation 'com.android.support:support-v4:28.0.0' implementation 'com.android.support:cardview-v7:28.0.0'

第二:此更改后出现错误:

错误:无法解决:support-vector-drawable

最终使用此优先级存储库:

buildscript { repositories { google() jcenter() mavenCentral() }

和:

allprojects { repositories { mavenCentral() maven { url 'https://maven.google.com' } google() jcenter() maven { url 'https://jitpack.io' } }}

© www.soinside.com 2019 - 2024. All rights reserved.