voghDev / PdfViewPager

Android widget that can render PDF documents stored on SD card, linked as assets, or downloaded from a remote URL.
Apache License 2.0
1.7k stars 330 forks source link

Failed To Resolve es.voghdev.pdfviewpager:library:1.1.3 library on Android Studio 2023.3.1 p1 #212

Open fgroupindonesia opened 3 months ago

fgroupindonesia commented 3 months ago

Describe the bug I tried to implement the configuration part but seems after running the sync everythings comes up with the error focus on library failed to resolve

Steps to Reproduce Here what i've done so far:

  1. Go to my empty project with just single Hello World that works well
  2. Next i opened build.gradle Module:app
  3. Put these codes:
dependencies {

    implementation libs.androidx.core.ktx
    implementation libs.androidx.lifecycle.runtime.ktx
    implementation libs.androidx.activity.compose
    implementation platform(libs.androidx.compose.bom)
    implementation libs.androidx.ui
    implementation libs.androidx.ui.graphics
    implementation libs.androidx.ui.tooling.preview
    implementation libs.androidx.material3
    implementation libs.es.voghdev.pdfviewpager.library
    debugImplementation libs.androidx.ui.tooling

}
  1. And then go to the libs.versions.toml and and along these code too :

[versions] agp = "8.4.1" kotlin = "1.9.0" coreKtx = "1.10.1" lifecycleRuntimeKtx = "2.6.1" activityCompose = "1.8.0" composeBom = "2023.08.00" pdfviewpagerLibrary = "1.1.3"

[libraries] androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" } androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" } androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" } androidx-ui = { group = "androidx.compose.ui", name = "ui" } androidx-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" } androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" } androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" } androidx-material3 = { group = "androidx.compose.material3", name = "material3" } es-voghdev-pdfviewpager-library = { group ="es.voghdev.pdfviewpager", name="library", version.ref = "pdfviewpagerLibrary" }

[plugins] android-application = { id = "com.android.application", version.ref = "agp" } jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }



**Expected behavior**
As far as I Know from the default one. I just put the pdfviewpagerLibrary version, and also the libraries section. Nothing more.

**Screenshots**
But somehow the Gradle didnt found that library? huh, strange!
![image](https://github.com/user-attachments/assets/051d5427-0cd2-4a46-9b94-7e82dc0bd7a1)

**Current Hardware Profile:**
 - Processor i3-4150 CPU @3.5 Ghz
 - RAM : 8GB (with 7.69Gb usable)
 - Windows 10 with 64bit.
 - HDD : nothing wrong with the harddrive, coz i am currently working on.

Any clues for this matter? Is this the library or the configuration or the gradle or something i dunno?

Regards,

FG.
real-Darkshadow commented 2 months ago

This library is still hosted on JCenter, but JCenter has been deprecated. @fgroupindonesia

adityasanghi96 commented 1 month ago

@fgroupindonesia any temporary workaround? I am facing the same issue

yusuf0x commented 5 days ago

@fgroupindonesia

It’s available via JitPack: https://jitpack.io/#voghDev/PdfViewPager