Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Crash in Android 6.0 (RippleEffect "Underflow in restore - more restores than saves") #49

Closed
ben-zhong opened this issue Sep 15, 2015 · 4 comments

Comments

@ben-zhong
Copy link

I got a crash of lollipin in android 6.0.

Fatal Exception: java.lang.IllegalStateException
Underflow in restore - more restores than saves

android.graphics.Canvas.native_restore (Canvas.java)
android.graphics.Canvas.restore (Canvas.java:540)
com.andexert.library.RippleView.draw (RippleView.java:159)

I think it is due to the error of RippleEffect (traex/RippleEffect#74)

Since lollipin uses a custom version of RippleEffect, maybe it should be fix here?
(https://github.com/OrangeGangsters/RippleEffect)

Thank you very much!

@StoyanD
Copy link
Contributor

StoyanD commented Sep 18, 2015

thanks, you can find the update in compile 'com.github.orangegangsters:lollipin:1.3.2@aar'

@StoyanD StoyanD closed this as completed Sep 18, 2015
@GirishBhalerao
Copy link

This has very simple solution. Just downgrade your - targetSdkVersion to 22
It works for all versions.

@GirishBhalerao
Copy link

There are two solutions for this Problem.

  1. As I mentioned before - "Just downgrade your - targetSdkVersion to 22
    It works for all versions" - This works fine if you have not launched your app with targetSdkVersion 23 yet.
  2. If you already have launched your app with targetSdkVersion 23 then,
    instead of adding compile 'com.github.traex.rippleeffect:library:1.3' in dependancies,
    Download the project by clicking on link - https://codeload.github.com/traex/RippleEffect/zip/master
    Get library from that and use that in your app. It works great...!!! :)

@dushan135
Copy link

@GirishBhalerao how to get the library and import it to my app??

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

No branches or pull requests

4 participants