安装react-native-pdf-lib后android构建失败

问题描述 投票:0回答:1

一旦我安装了react-native-pdf-lib,android构建就开始在react native中失败,它说

Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.tom_roush:pdfbox-android:1.8.9.1.
     Searched in the following locations:
       - https://oss.sonatype.org/content/repositories/snapshots/com/tom_roush/pdfbox-android/1.8.9.1/pdfbox-android-1.8.9.1.pom
       - https://repo.maven.apache.org/maven2/com/tom_roush/pdfbox-android/1.8.9.1/pdfbox-android-1.8.9.1.pom
       - file:/Users/yashworldproductpvtltd/example/DocsAndIDScanner/node_modules/jsc-android/dist/com/tom_roush/pdfbox-android/1.8.9.1/pdfbox-android-1.8.9.1.pom
       - https://dl.google.com/dl/android/maven2/com/tom_roush/pdfbox-android/1.8.9.1/pdfbox-android-1.8.9.1.pom
       - https://www.jitpack.io/com/tom_roush/pdfbox-android/1.8.9.1/pdfbox-android-1.8.9.1.pom
     Required by:
         project :app > project :react-native-pdf-lib

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

我已经尝试过提到的解决方案solution1solution2,我是本地反应新手,我似乎没有找到任何解决方案, 我想要在我的应用程序中创建编辑和合并 pdf 的功能

react-native android-build
1个回答
0
投票

你能解决这个问题吗?我没有找到任何关于此的文档。

© www.soinside.com 2019 - 2024. All rights reserved.