Open OsamaNasserDev opened 2 years ago
I am also facing the same issue, any workaround so far?
It worked for me after updating compiledsdkversion 31 add android.enableR8=true in gradle.properties changed
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
in build.gradle
It is mentioned in pub.dev page that lib uses AndroidPdfViewer and there you can find information which says: "Library is available in jcenter repository, probably it'll be in Maven Central soon.". To fix this problem just add
allprojects {
repositories {
google()
mavenCentral()
jcenter() //add this
}
}
to your android/build.gradle file. Worked in my case.
just adding jcenter()
worked for me
FAILURE: Build failed with an exception.