Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Vengat121 opened this issue Aug 6, 2019 · 0 comments
Open

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

Vengat121 opened this issue Aug 6, 2019 · 0 comments

Comments

@Vengat121
Copy link

Vengat121 commented Aug 6, 2019

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant