DImuthuUpe / AndroidPdfViewer

Android view for displaying PDFs rendered with PdfiumAndroid
Apache License 2.0
8.05k stars 1.85k forks source link

Support Maven central #1167

Open AbdelrahmanMahmoud262 opened 8 months ago

AbdelrahmanMahmoud262 commented 8 months ago

Please support maven central

mdshourovmolla2000 commented 8 months ago

I also need this. In latest android studio library not downloading in gradle..

kartikprakash1 commented 6 months ago

Are there any updates on this?

kartikprakash1 commented 6 months ago

@barteksc

dhirunand commented 5 months ago

Add this line at two place in build.gradle maven { url "https://jcenter.bintray.com"}/

example,

// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { // ext.kotlin_version = '1.7.1' repositories { google() mavenCentral() maven { url "https://jcenter.bintray.com"}/ } dependencies { classpath 'com.android.tools.build:gradle:8.1.2' classpath 'com.google.gms:google-services:4.4.0' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'

// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

// def nav_version = '2.7.6' classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.7.6"

} }

allprojects { repositories { google() mavenCentral() maven { url "https://jcenter.bintray.com"}/

maven { url "https://jitpack.io" } //zooming photoView

} }

tasks.register('clean', Delete) { delete rootProject.buildDir }

angad305 commented 3 months ago

Add this line at two place in build.gradle maven { url "https://jcenter.bintray.com"}/

example,

// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { // ext.kotlin_version = '1.7.1' repositories { google() mavenCentral() maven { url "https://jcenter.bintray.com"}/ } dependencies { classpath 'com.android.tools.build:gradle:8.1.2' classpath 'com.google.gms:google-services:4.4.0' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'

// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

// def nav_version = '2.7.6' classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.7.6"

} }

allprojects { repositories { google() mavenCentral() maven { url "https://jcenter.bintray.com"}/

maven { url "https://jitpack.io" } //zooming photoView

} }

tasks.register('clean', Delete) { delete rootProject.buildDir }

thanks works like a charm