搜尋此網誌

2018年5月3日 星期四

【Android】java.lang.IllegalStateException: Underflow in restore - more restores than saves

ref:
https://stackoverflow.com/a/41391185

  • Downgrade targetSdkVersion to 22 you can run it: meaning it does not crash! but I really don'trecommend that.
  • Call canvas.save(); before every restore() is another suggestion from your link given that you can try