gpt4 book ai didi

android - gradle Unresolved 依赖关系

转载 作者:行者123 更新时间:2023-12-03 03:11:19 24 4
gpt4 key购买 nike

我在Gradle文件中有问题。在更新Android Studio后,我还必须更新依赖关系,但是我遇到了无法解决的依赖关系。

项目gradle:

buildscript {
repositories {
mavenCentral()

maven { url 'https://maven.fabric.io/public' }
google()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'io.fabric.tools:gradle:1.29.0'
classpath 'com.novoda:bintray-release:0.4.1'
classpath 'com.google.gms:google-services:4.1.0'


}

}

allprojects {
repositories {

maven { url 'https://maven.fabric.io/public' }

jcenter()
}
}

应用程式gradle:
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric'


android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
useLibrary 'org.apache.http.legacy'

defaultConfig {
applicationId "com.packagename"
minSdkVersion 21
targetSdkVersion 28
multiDexEnabled true
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}

lintOptions {
disable "ResourceType"
}
}

ext {
googlePlayServicesVersion = "4.2.0"
}


dependencies {
implementation files('libs/icu4j-4_4_2_2.jar')
implementation files('libs/jsoup-1.6.3.jar')
implementation files('libs/ksoap2-android-assembly-2.6.0-jar-with-dependencies.jar')
implementation files('libs/zip4j_1.2.6.jar')

implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar') {
transitive = true;
}

implementation 'com.facebook.android:facebook-android-sdk:4.38.1'
// Google
implementation 'com.google.android.gms:play-services-auth:16.0.1'

implementation'com.google.firebase:firebase-auth:16.1.0'

// Firebase
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-core:16.0.3'


implementation 'com.google.android.gms:play-services-ads:17.2.1'

implementation project(':pdflibrary')
implementation 'com.android.support:support-compat:27.0.2'
implementation 'com.android.support:cardview-v7:27.0.2'
implementation 'com.android.support:customtabs:27.0.2'

implementation files('libs/junit-4.3.jar')

implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'

implementation 'com.google.android.gms:play-services-flags:16.0.1'
implementation 'com.google.android.gms:play-services-basement:16.0.1'

implementation fileTree(dir: 'libs', include: ['*.jar'])
}

pdf库gradle:
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'



defaultConfig {
minSdkVersion 24
targetSdkVersion 28
versionCode 1
versionName '1'
}

sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
}

publish {
userOrg = 'thefinestartist'
groupId = 'com.thefinestartist'
artifactId = 'finestwebview'
publishVersion = '1'
desc = 'Beautiful and customizable Android Activity that shows web pages within an app.'
website = 'https://github.com/TheFinestArtist/FinestWebView-Android'
}

这是我所知道的错误,将min-sdk设置为24,并且仅在gradle中,并且已从两个 list 中将其删除(app和pdfLibrary):

enter image description here

我尝试了其他SO问题的建议,但没有任何效果。

最佳答案

minSdkVersion而不是pdf库中的21编辑为24
同步项目

关于android - gradle Unresolved 依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56543923/

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