首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >未能解决: com.github.barteksc:android-pdf-viewer:3.2.0-beta.1如何解决此问题

未能解决: com.github.barteksc:android-pdf-viewer:3.2.0-beta.1如何解决此问题
EN

Stack Overflow用户
提问于 2022-03-26 11:09:54
回答 8查看 4.5K关注 0票数 6

我尝试构建android阅读器并添加一个库com.github.barteksc:android-pdf-viewer:2.8.2,然后显示以下错误

我的build.gradle文件是请大家帮我解决这个问题,我也想构建这个应用程序。

伙计们,请帮帮我

代码语言:javascript
运行
复制
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'
}
EN

Stack Overflow用户

发布于 2022-05-25 09:37:12

对于这个版本的2.8.2,它只能在jCenter上使用,但是如果您对jCenter有问题,可以使用其他方法,比如jitpack。

代码语言:javascript
运行
复制
maven { url 'https://jitpack.io' }

implementation 'com.github.barteksc:AndroidPdfViewer:master-SNAPSHOT'
票数 0
EN
查看全部 8 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71627522

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档