Forum für diejenigen, die für Android programmieren
Guest
Android Gradle com.github.barteksc:android-pdf-viewer
Post
by Guest » 14 Jan 2025, 11:37
Ich habe Probleme mit dem Paket „com.github.barteksc:android-pdf-viewer“ – es lässt sich nicht über JitPack, Maven Central, Gradle oder ein anderes Repository lösen. Gibt es noch eine Möglichkeit, diese Bibliothek zu nutzen? Ich habe gelesen, dass Version 3.2.0-beta.1 funktionieren könnte, aber ich bekomme es nicht hin.
build.gradle
Code: Select all
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id "io.sentry.android.gradle" version "4.14.1"
}
android {
bundle {
language {
// Specifies that the app bundle should not support
// configuration APKs for language resources. These
// resources are instead packaged with each base and
// dynamic feature APK.
enableSplit = false
}
}
compileSdk 34
defaultConfig {
applicationId "es.clickrent.digitizationcontracts"
minSdk 26
targetSdk 34
versionCode 29
versionName '3.3.0'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
shrinkResources false
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
viewBinding true
}
namespace 'es.clickrent.digitizationcontracts'
}
dependencies {
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
implementation 'androidx.navigation:navigation-fragment-ktx:2.5.1'
implementation 'androidx.navigation:navigation-ui-ktx:2.5.1'
implementation 'androidx.preference:preference:1.2.0'
implementation 'androidx.preference:preference-ktx:1.2.0'
implementation 'androidx.webkit:webkit:1.4.0'
implementation 'androidx.annotation:annotation:1.4.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.play:asset-delivery:2.2.2'
implementation 'com.google.android.play:app-update:2.1.0'
implementation 'com.beardedhen:androidbootstrap:2.3.2'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0'
implementation 'com.squareup.retrofit2:converter-jackson:2.9.0'
implementation 'com.pranavpandey.android:dynamic-toasts:4.1.0'
implementation 'com.github.Kaopiz:KProgressHUD:1.0'
implementation 'com.github.f0ris.sweetalert:library:1.6.2'
implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'
implementation 'com.github.gcacace:signature-pad:1.3.1'
implementation 'com.github.anastr:speedviewlib:1.5.5'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:5.3.1'
testImplementation 'org.mockito:mockito-inline:3.8.0'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
testImplementation "androidx.arch.core:core-testing:2.2.0"
}
settings.gradle
Code: Select all
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter()
gradlePluginPortal()
maven { url 'https://jitpack.io' }
maven { url 'https://maven.google.com' }
}
}
rootProject.name = "Clickrent App Mobile Digitization Contracts"
include ':app'
Danke!
1736851035
Guest
Ich habe Probleme mit dem Paket „com.github.barteksc:android-pdf-viewer“ – es lässt sich nicht über JitPack, Maven Central, Gradle oder ein anderes Repository lösen. Gibt es noch eine Möglichkeit, diese Bibliothek zu nutzen? Ich habe gelesen, dass Version 3.2.0-beta.1 funktionieren könnte, aber ich bekomme es nicht hin. build.gradle [code]plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' id "io.sentry.android.gradle" version "4.14.1" } android { bundle { language { // Specifies that the app bundle should not support // configuration APKs for language resources. These // resources are instead packaged with each base and // dynamic feature APK. enableSplit = false } } compileSdk 34 defaultConfig { applicationId "es.clickrent.digitizationcontracts" minSdk 26 targetSdk 34 versionCode 29 versionName '3.3.0' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { shrinkResources false minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } buildFeatures { viewBinding true } namespace 'es.clickrent.digitizationcontracts' } dependencies { implementation 'androidx.core:core-ktx:1.8.0' implementation 'androidx.appcompat:appcompat:1.4.2' implementation 'com.google.android.material:material:1.6.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' implementation 'androidx.navigation:navigation-fragment-ktx:2.5.1' implementation 'androidx.navigation:navigation-ui-ktx:2.5.1' implementation 'androidx.preference:preference:1.2.0' implementation 'androidx.preference:preference-ktx:1.2.0' implementation 'androidx.webkit:webkit:1.4.0' implementation 'androidx.annotation:annotation:1.4.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'com.google.android.play:asset-delivery:2.2.2' implementation 'com.google.android.play:app-update:2.1.0' implementation 'com.beardedhen:androidbootstrap:2.3.2' implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0' implementation 'com.squareup.retrofit2:converter-jackson:2.9.0' implementation 'com.pranavpandey.android:dynamic-toasts:4.1.0' implementation 'com.github.Kaopiz:KProgressHUD:1.0' implementation 'com.github.f0ris.sweetalert:library:1.6.2' implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1' implementation 'com.github.gcacace:signature-pad:1.3.1' implementation 'com.github.anastr:speedviewlib:1.5.5' testImplementation 'junit:junit:4.13.2' testImplementation 'org.mockito:mockito-core:5.3.1' testImplementation 'org.mockito:mockito-inline:3.8.0' androidTestImplementation 'androidx.test.ext:junit:1.2.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1' testImplementation "androidx.arch.core:core-testing:2.2.0" } [/code] settings.gradle [code]pluginManagement { repositories { gradlePluginPortal() google() mavenCentral() } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() jcenter() gradlePluginPortal() maven { url 'https://jitpack.io' } maven { url 'https://maven.google.com' } } } rootProject.name = "Clickrent App Mobile Digitization Contracts" include ':app' [/code] [img]https://i.sstatic.net/2f6LB16M.png[/img] Danke!
0 Replies
12 Views
Last post by Guest
13 Jan 2025, 09:25
0 Replies
7 Views
Last post by Anonymous
17 Jan 2025, 07:46
0 Replies
6 Views
Last post by Guest
08 Feb 2025, 17:01
0 Replies
16 Views
Last post by Anonymous
24 Dec 2024, 10:04
0 Replies
4 Views
Last post by Guest
20 Jan 2025, 15:49