Open Kazi-Wahed opened 11 months ago
@lubritto hey there! Is there any chance we could solve this issue? If you're willing to merge the PR, I could make this update for you. Let me know <3
Does it solved ? And new version released? Thank a lot!
No update on this? cc @johnyen220 @gabrielaraujoz @Kazi-Wahed @chrismills @lubritto
Launching lib\main.dart on SM A205F in debug mode...
FAILURE: Build failed with an exception.
Where: Build file 'C:\Users\ogara\AppData\Local\Pub\Cache\hosted\pub.dev\pdf_viewer_plugin-2.0.1\android\build.gradle' line: 39
What went wrong: A problem occurred evaluating project ':pdf_viewer_plugin'.
Cannot set the value of read-only property 'force' for DefaultExternalModuleDependency{group='com.github.barteksc', name='android-pdf-viewer', version='3.0.0-beta.4', configuration='default'} of type org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency.
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.
BUILD FAILED in 8s Error: Gradle task assembleDebug failed with exit code 1
Below is the build.gradle:
group 'dev.britto.pdf_viewer_plugin' version '1.0'
buildscript { repositories { google() jcenter() }
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
}
}
rootProject.allprojects { repositories { google() jcenter() } }
apply plugin: 'com.android.library'
android { compileSdkVersion 30
defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'InvalidPackage'
}
}
dependencies { implementation 'androidx.appcompat:appcompat:1.2.0' implementation('com.github.barteksc:android-pdf-viewer:3.0.0-beta.4') { force = true } }
Same problem here:
A problem occurred evaluating project ':pdf_viewer_plugin'.
> Cannot set the value of read-only property 'force' for DefaultExternalModuleDependency{group='com.github.barteksc', name='android-pdf-viewer', version='3.0.0-beta.4', configuration='default'} of type org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency.
by commenting the force = true end up to:
Could not resolve com.github.barteksc:android-pdf-viewer:3.0.0-beta.4.
> Could not get resource 'https://www.jitpack.io/com/github/barteksc/android-pdf-viewer/3.0.0-beta.4/android-pdf-viewer-3.0.0-beta.4.pom'.
> Could not GET 'https://www.jitpack.io/com/github/barteksc/android-pdf-viewer/3.0.0-beta.4/android-pdf-viewer-3.0.0-beta.4.pom'. Received status code 401 from server: Unauthorized
implementation('com.github.barteksc:android-pdf-viewer:3.0.0-beta.4') { force = true }
A problem occurred evaluating project ':pdf_viewer_plugin'.