AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

Failed to resolve: com.github.barteksc:android-pdf-viewer:3.2.0-beta.1

Open WY1605058341 opened this issue 1 year ago • 18 comments

The version of Android Studio is 2024.1.2. Can not sync success,show the error : Failed to resolve: com.github.barteksc:android-pdf-viewer:3.2.0-beta.1

WY1605058341 avatar Nov 01 '24 08:11 WY1605058341

use below repo maven { url "https://repository.liferay.com/nexus/content/repositories/public/" }

hhajiloo avatar Nov 02 '24 13:11 hhajiloo

Isn't working, continue failing

jordizspmobile avatar Nov 02 '24 14:11 jordizspmobile

settings.gradle file

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
        maven { url 'https://jitpack.io' }
        maven { url "https://repository.liferay.com/nexus/content/repositories/public/" }
    }
}

i use and its work!

hhajiloo avatar Nov 03 '24 22:11 hhajiloo

not working

shubhamshreesri avatar Nov 14 '24 17:11 shubhamshreesri

The fix proposed works. Can someone explain why we have to link to another repository to get the latest version? Shouldn't this be better done as a GitHub package ?

sharat avatar Nov 29 '24 07:11 sharat

The version of Android Studio is 2024.1.2. Can not sync success,show the error : Failed to resolve: com.github.barteksc:android-pdf-viewer:3.2.0-beta.1

Use this one . it works.

implementation 'com.github.mhiew:android-pdf-viewer:3.2.0-beta.1'

thakkarnetram avatar Dec 09 '24 13:12 thakkarnetram

settings.gradle file

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
        maven { url 'https://jitpack.io' }
        maven { url "https://repository.liferay.com/nexus/content/repositories/public/" }
    }
}

i use and its work!

i also use this and now it's perfectly working

mohdmustaqeem7830 avatar Dec 15 '24 15:12 mohdmustaqeem7830

Android Studio 版本是 2024.1.2。无法同步成功,显示错误:无法解析:com.github.barteksc:android-pdf-viewer:3.2.0-beta.1

使用这个。它有效。

implementation 'com.github.mhiew:android-pdf-viewer:3.2.0-beta.1'

thank you

mikehot avatar Dec 18 '24 02:12 mikehot

use below repo maven { url "https://repository.liferay.com/nexus/content/repositories/public/" }

Using this repo in project level build.gradle file, I was able to address this issue.

ankushpatel18 avatar Dec 18 '24 09:12 ankushpatel18

worked for some time but not working now

sumitsah250 avatar Dec 19 '24 04:12 sumitsah250

use below repo maven { url "https://repository.liferay.com/nexus/content/repositories/public/" }

Thanks @hhajiloo . This worked like a charm. Not just android-pdf-viewer but few other obsolete dependencies were also found in this repo.

Failed to resolve: com.firebase:firebase-jobdispatcher:0.8.5
Failed to resolve: xyz.belvi.mobilevision:barcodescanner:2.0.3
Failed to resolve: net.opacapp:multiline-collapsingtoolbar:27.1.1
Failed to resolve: com.journeyapps:zxing-android-embedded:3.2.0

pravynandas avatar Jan 09 '25 01:01 pravynandas

Use these lines, copy and paste, and it will work for you. Then pray for me.

dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() gradlePluginPortal() maven { url "https://jitpack.io/" } maven { url "https://repository.liferay.com/nexus/content/repositories/public/" } maven { url "https://jcenter.bintray.com/" } } }

ayman202 avatar Feb 02 '25 15:02 ayman202

Use this one . it works.

implementation 'com.github.mhiew:android-pdf-viewer:3.2.0-beta.1'

I get these build errors with the above library:

Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable Duplicate class android.support.v4.app.AppLaunchChecker found in modules support-compat-28.0.0.aar -> support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0) and support-core-utils-26.1.0.aar -> support-core-utils-26.1.0-runtime (com.android.support:support-core-utils:26.1.0) Duplicate class android.support.v4.app.FrameMetricsAggregator found in modules support-compat-28.0.0.aar -> support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0) and support-core-utils-26.1.0.aar -> support-core-utils-26.1.0-runtime (com.android.support:support-core-utils:26.1.0) Duplicate class android.support.v4.app.FrameMetricsAggregator$FrameMetricsApi24Impl found in modules support-compat-28.0.0.aar -> support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0) and support-core-utils-26.1.0.aar -> support-core-utils-26.1.0-runtime (com.android.support:support-core-utils:26.1.0)

Flavius-I avatar Mar 10 '25 19:03 Flavius-I

Execution failed for task ':app:checkDebugDuplicateClasses'.

Try to clean and rebuild the project

thakkarnetram avatar Mar 13 '25 05:03 thakkarnetram

I solved it by using this fork version, thanks:

implementation 'com.github.mhiew:android-pdf-viewer:3.2.0-beta.3'

Flavius-I avatar Mar 13 '25 17:03 Flavius-I

dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() maven { url = uri("https://jitpack.io") } // maven { url = uri("https://repository.liferay.com/nexus/content/repositories/public/") } gradlePluginPortal() } }

rhdtl avatar Mar 22 '25 06:03 rhdtl

allprojects { repositories { google() mavenCentral() jcenter() maven { url 'https://jitpack.io' } }

subprojects { subproject ->
    configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.github.barteksc' &&
                    details.requested.name == 'android-pdf-viewer') {
                details.useTarget 'com.github.mhiew:android-pdf-viewer:3.2.0-beta.2'
            }
        }
    }
}

}

I tried adding the subprojects block inside allprojects, and it worked.

MrGollum avatar Apr 10 '25 02:04 MrGollum

use below repo maven { url "https://repository.liferay.com/nexus/content/repositories/public/" }

This solution works for me too, very helpful thanks a lot

ethanpyth avatar Apr 14 '25 12:04 ethanpyth