سلام.من میخواستم به حافظه گوشی دسترسی پیدا کنم،اما وقتی در قسمت dependencies لایبرری زیر را implement میکنم،خطای کلاس تکراری رو میده
com.karumi:dexter
در قسمت manifest هم permission مربوط به Read external storage رو گذاشتم.
plugins { id 'com.android.application' } android { compileSdk 32 defaultConfig { applicationId "com.example.musicplayer" minSdk 21 targetSdk 32 versionCode 1 versionName "1.0" vectorDrawables.useSupportLibrary true 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 'androidx.appcompat:appcompat:1.4.2' implementation 'com.google.android.material:material:1.6.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'com.karumi:dexter:5.0.0' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' implementation 'com.google.android.material:material:1.6.1' implementation "androidx.recyclerview:recyclerview:1.2.1" implementation 'com.facebook.fresco:fresco:2.6.0' implementation "androidx.viewpager2:viewpager2:1.0.0" implementation 'com.facebook.fresco:fresco:2.6.0' def lottieVersion = "3.4.0" implementation "com.airbnb.android:lottie:$lottieVersion" }