Die Klasse com.smarteist kann nicht behebenJava

Java-Forum
Anonymous
 Die Klasse com.smarteist kann nicht beheben

Post by Anonymous »

Ich versuche, die Bibliothek "com.github.smarteist: autoimageslider: 1.4.0" zu verwenden, aber ich kann nicht. build.gradle (: app). /> Ich habe das Beispiel in die Label. />
Ich habe den Fehler erhalten: "Die Klasse kann nicht klassen. /> Datei Build.gradle: Modul < /p>

Code: Select all

buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.google.gms:google-services:4.3.14'
}
}
plugins {
id 'com.android.application' version '7.2.1' apply false
id 'com.android.library' version '7.2.1' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
< /code>
Datei Build.gradle: App < /p>
   plugins {
id 'com.android.application'
id 'com.google.gms.google-services'
}

android {
compileSdk 32

defaultConfig {
applicationId "com.socialtravel"
minSdk 21
targetSdk 32
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
}
buildFeatures {
viewBinding true
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.android.material:material:1.7.0'
implementation 'androidx.annotation:annotation:1.5.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
implementation 'io.github.florent37:shapeofview:1.4.7'
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation platform('com.google.firebase:firebase-bom:30.2.0')
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-auth'
implementation 'com.google.firebase:firebase-firestore'
implementation 'com.google.android.gms:play-services-auth:20.4.0'
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
implementation 'com.google.firebase:firebase-storage:20.1.0'
implementation('id.zelory:compressor:2.1.0') {
exclude module: 'unspecified'
}
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.firebaseui:firebase-ui-firestore:8.0.2'
implementation 'com.github.d-max:spots-dialog:1.1@aar'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
implementation 'com.github.smarteist:Android-Image-Slider:1.4.0'
}
< /code>
und die Aktivität XML -Datei: < /p>
    









Ich habe ein neues Projekt erstellt, ich füge diese drei Dateien hinzu und erhalte den gleichen Fehler: "Ich konnte nicht com.smarteist.autoimageslider.sliderview finden"

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post