【问题标题】:Why do we get the following error for the dependency we have used for pdfview为什么我们用于 pdfview 的依赖项会出现以下错误
【发布时间】:2021-08-13 08:09:29
【问题描述】:

这是我们用于 pdfview 的依赖项的错误

Failed to resolve: com.github.barteksc:android-pdf-viewer:3.2.0-beta.1
<a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
Affected Modules: <a href="openFile:D:/6th Sem/BookTrial/app/build.gradle">app</a> 

我们已将 pdf 存储在 firebase 上,然后在使用 pdfview 时出现此错误

此外,我们已将 Android Studio 更新到最新版本,这不知何故导致了此错误

【问题讨论】:

    标签: java android xml firebase android-studio


    【解决方案1】:

    这两个库仅在 jcenter 存储库中可用:

    1. 稳定的
    implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
    
    1. 还有一个你用过的
    implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'
    

    因此,它会在关闭时显示错误。所以你应该试试PdfiumAndroid,因为它在 jcentre 和 maven 中都可用。

    compile 'com.github.barteksc:pdfium-android:1.9.0'
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-29
      • 1970-01-01
      • 2021-12-30
      • 2017-12-03
      相关资源
      最近更新 更多