christopherdro / react-native-html-to-pdf

Convert html strings to PDF documents using React Native
MIT License
434 stars 264 forks source link

Build failed: Could not find com.tom_roush:pdfbox-android:1.8.10.0 #235

Closed Pranat-morphosis closed 3 years ago

Pranat-morphosis commented 3 years ago

Follow the installation with a new project and got this issue OS: Windows 10 Platform: Android

Screenshot 2021-09-06 180255

wbroek commented 3 years ago

@Pranat-morphosis it cannot find the Android dependency because jCenter has been removed in the latest react native version as a repository of depedencies. You need to jcenter back to android/build.gradle file at the bottom of allprojects->repositories unit PR is merged, best is to define the package as well because jCenter is in read-only modus and packages will not receive updates anymore there (but do on maven central):

allprojects {
    repositories {
        ..... # keep all others
        jcenter() {
            content {
                includeModule("com.tom_roush", "pdfbox-android")
            }
        }
    }
}
ajaybushel commented 3 months ago

For anyone else coming here, just update to the latest version.