gpt4 book ai didi

java - 错误 : Could not find com. android.support :support-v4:27. 1.1

转载 作者:行者123 更新时间:2023-12-02 01:15:09 24 4
gpt4 key购买 nike

嘿,我将一个项目导入到我的 android studio 中,当我尝试构建该项目时,它在错误日志中显示此错误:

ERROR: Could not find com.android.support:appcompat-v7:27.0.1.

Required by: project :app Search in build.gradle files

build.gradle

    android {

compileSdkVersion 27
buildToolsVersion "28.0.3"
defaultConfig {
multiDexEnabled true
applicationId "com.ezs.boostantiv"
minSdkVersion 16
targetSdkVersion 26

versionCode 1
versionName "1"
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/android-query-full.0.26.2-beta.1.jar')
// compile 'com.github.navasmdc:MaterialDesign:1.5@aar'


compile 'com.commit451:PhotoView:1.2.4'
compile 'com.android.support:appcompat-v7:27.0.1'
compile 'com.android.support:support-v4:27.0.1'
compile 'com.android.support:cardview-v7:27.0.1'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.github.kenumir:MaterialSettings:v.1.2.2'
compile 'com.android.support:design:27.1.1'
compile 'com.jakewharton:butterknife:8.2.1'
apt 'com.jakewharton:butterknife-compiler:8.2.1'

}

请告诉我如何解决这个问题。提前非常感谢您。

最佳答案

切换到Androidx库,添加以下依赖

实现“androidx.appcompat:appcompat:1.1.0”

关于java - 错误 : Could not find com. android.support :support-v4:27. 1.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58764060/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com