Невозможно реализовать галерею в моем приложении для Android - PullRequest
0 голосов
/ 01 декабря 2018

Я должен разработать галерею изображений из списка URL, поэтому я использовал галерею изображений Glide, но она показывает ошибку. Пожалуйста, помогите мне восстановить это.спасибо Зависимости, которые я использовал.

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'rongi.rotate-layout:rotate-layout:3.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.aurelhubert:ahbottomnavigation:2.1.0'
implementation 'com.github.sundeepk:compact-calendar-view:3.0.0'
implementation 'com.applandeo:material-calendar-view:1.5.0'
implementation 'com.p_v:flexiblecalendar:1.2.1'
implementation 'com.riontech:calendar:1.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'

implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.google.firebase:firebase-messaging:11.6.2'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.github.siyamed:android-shape-imageview:0.9.3'
implementation 'me.zhanghai.android.materialprogressbar:library:1.4.2'
implementation 'com.github.bumptech.glide:glide:4.3.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation 'com.victor:lib:1.0.4'
implementation 'com.roger.gifloadinglibrary:gifloadinglibrary:1.0.0'
implementation 'com.github.mzelzoghbi:zgallery:0.3'
implementation 'net.alhazmy13.MediaPicker:libary:2.4.4'
implementation 'com.github.stfalcon:contentmanager:0.5'
implementation 'com.yanzhenjie:album:2.1.3'
}

java-код

 ZGallery.with(this, getDummyImageList())
            .setToolbarTitleColor(ZColor.WHITE) // toolbar title color
            .setGalleryBackgroundColor(ZColor.WHITE) // activity background color
            .setToolbarColorResId(R.color.colorPrimary) // toolbar color
            .setTitle("Zak Gallery") // toolbar title
            .show();

Я не знаю, в чем произошла ошибка.дать какие-либо идеи, чтобы очистить это

java.lang.NoSuchMethodError: No virtual method load(Ljava/lang/String;)Lcom/bumptech/glide/DrawableTypeRequest; in class Lcom/bumptech/glide/RequestManager; or its super classes (declaration of 'com.bumptech.glide.RequestManager' appears in /data/app/com.school.saple.saple-Qch_-rXjUMUBDHIrTTgVUw==/split_lib_dependencies_apk.apk)
    at com.mzelzoghbi.zgallery.adapters.HorizontalListAdapters.onBindViewHolder(HorizontalListAdapters.java:40)
    at com.mzelzoghbi.zgallery.adapters.HorizontalListAdapters.onBindViewHolder(HorizontalListAdapters.java:21)
    at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6781)
    at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6823)
    at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5752)
...