wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.57k stars 534 forks source link

Issue while installing on android #517

Open ScreamZ opened 3 years ago

ScreamZ commented 3 years ago

What react-native version are you using?

"react-native": "0.63.3"

What react-native-pdf version are you using?

react-native-pdf: "6.2.2"

What platform does your issue occur on? (android/ios/both)

Android

Explanations

Everything is OK on iOS, but on Android, after following the install procedure :

buildTypes {
        debug {
            signingConfig signingConfigs.debug
        }
        release {
            // Caution! In production, you need to generate your own keystore file.
            // see https://reactnative.dev/docs/signed-apk-android.
            signingConfig signingConfigs.debug
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }
    packagingOptions {
        pickFirst 'lib/x86/libc++_shared.so'
        pickFirst 'lib/x86_64/libjsc.so'
        pickFirst 'lib/arm64-v8a/libjsc.so'
        pickFirst 'lib/arm64-v8a/libc++_shared.so'
        pickFirst 'lib/x86_64/libc++_shared.so'
        pickFirst 'lib/armeabi-v7a/libc++_shared.so'
    }

I get the following, looks like the repository is having issues streaming the archive…

Screenshot 2020-10-30 at 14 26 07

michaelroth-xx commented 3 years ago

I have quite the same problem... Seem's the library is no longer available in the maven repository... Bildschirmfoto 2020-11-06 um 17 14 09

BrendonSled commented 3 years ago

In your build.gradle make sure you have this:

allprojects {
    repositories {
        ...
        maven {
            url 'https://jitpack.io'
        }
        ...
    }
}
krischadalawada commented 3 years ago

@BrendonSled I have that in build.gradle but I'm still facing the same issue. Please help

BrendonSled commented 3 years ago

Can you post your build.gradle?

vikas5914 commented 3 years ago

@krischadalawada please post your build.gradle file.