daimajia / AndroidImageSlider

An amazing and convenient Android image slider.
MIT License
5.62k stars 1.66k forks source link

com.squareup.picasso.Callback.onError(java.lang.Exception)" #415

Open Vengat121 opened 5 years ago

Vengat121 commented 5 years ago

dependency

implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'

implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'

implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.slider:library:1.1.5@aar'

code

                    for(String name : image_slider.keySet()){
                        Log.d(TAG, "onResponse: name "+ name+ " url "+ image_slider.get(name));

                        TextSliderView textSliderView = new TextSliderView(LoginActivity.this);
                        // initialize a SliderLayout
                        textSliderView
                                .description(name)
                                .image(image_slider.get(name))
                                .setScaleType(BaseSliderView.ScaleType.Fit);

                        //add your extra information
                        textSliderView.bundle(new Bundle());
                        textSliderView.getBundle().putString("extra",name);
                        textSliderView.setPicasso(Picasso.get());

                        slider.addSlider(textSliderView);

                    }
                    slider.setPresetTransformer(SliderLayout.Transformer.Accordion);
                    slider.setPresetIndicator(SliderLayout.PresetIndicators.Center_Bottom);
                    slider.setDuration(4000);

log error Process: com.winagagne.wag, PID: 17756 java.lang.AbstractMethodError: abstract method "void com.squareup.picasso.Callback.onError(java.lang.Exception)" at com.squareup.picasso.ImageViewAction.error(ImageViewAction.java:72) at com.squareup.picasso.Picasso.deliverAction(Picasso.java:581) at com.squareup.picasso.Picasso.complete(Picasso.java:528) at com.squareup.picasso.Picasso$1.handleMessage(Picasso.java:122) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:176) at android.app.ActivityThread.main(ActivityThread.java:6651) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)