In einen Andren Beitrag wurde MPAndroidChart für mein AppStore(Entwickler Konsole -> Finanzen..) empfohlen, obwohl das nicht gewartet wurde. Ohne die Implemention funktioniert die App.
Im App Store wird kein Fehler angezeigt nur in der TEST App. Obwohl alles gleich gemacht...
Mit Implemention bekomme ich diese Fehlermeldung:
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

So sieht die Implementation aus:
und das Reposity(Soll ich eigentlich machen, bekomme ich nicht hin)
Die Abhängigkeit steht da: https://weeklycoding.com/mpandroidchart/
Wollte im Layout die Charts einfügen(https://weeklycoding.com/mpandroidchart-documentation/getting-started/)
Wurde aber nixs angezeigt, vermute das liegt an der Abhängikeit.
Wist ihr wie ich das Gradle mit der Abhänigkeit zum laufen zu bringen?
Ich danke euch im Vorfeld, für eure Answer.
Im App Store wird kein Fehler angezeigt nur in der TEST App. Obwohl alles gleich gemacht...
Mit Implemention bekomme ich diese Fehlermeldung:
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

So sieht die Implementation aus:
Java:
plugins {
id 'com.android.application'
}
android {
namespace 'com.andrealfredklug.mpcharttest'
compileSdk 33
defaultConfig {
applicationId "com.andrealfredklug.mpcharttest"
minSdk 24
targetSdk 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
und das Reposity(Soll ich eigentlich machen, bekomme ich nicht hin)
Code:
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "MPChart Test"
include ':app'
Die Abhängigkeit steht da: https://weeklycoding.com/mpandroidchart/
Wollte im Layout die Charts einfügen(https://weeklycoding.com/mpandroidchart-documentation/getting-started/)
Wurde aber nixs angezeigt, vermute das liegt an der Abhängikeit.
Wist ihr wie ich das Gradle mit der Abhänigkeit zum laufen zu bringen?
Ich danke euch im Vorfeld, für eure Answer.
Zuletzt bearbeitet: