Das*_*ash 8 dependencies android gradle
我尝试构建 android pdf reader 并添加库com.github.barteksc:android-pdf-viewer:2.8.2然后显示以下错误
我的build.gradle文件是请大家帮我解决问题,我想尽可能构建应用程序
请大家帮助我
plugins {
id 'com.android.application'
}
android {
compileSdk 32
defaultConfig {
applicationId "com.dash.songuploader"
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildToolsVersion '32.0.0'
}
dependencies {
implementation 'com.karumi:dexter:6.2.3'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
// implementation 'com.squareup.picasso:picasso:2.71828'
//pdf library
implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
//dbshbs
implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'
// implementation 'com.joanzapata.pdfview:android-pdfview:2.8.2@aar'
}
Run Code Online (Sandbox Code Playgroud)
上面的许多评论都谈到将 jcenter() 添加到 settings.gradle 中。
那对我不起作用。为了让我的 Flutter 项目再次运行,我必须将 jcenter() 添加到android/build.gradle文件中。
allprojects {
repositories {
google()
mavenCentral()
jcenter()
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12620 次 |
| 最近记录: |