Open gadaramaulik opened 5 years ago
I am also facing the same issue.
change targetSdkVersion 28 to 27 from app level build.gradle
https://github.com/AndroidDeveloperLB/Android-Week-View/ fork of this library, but maintained.
change targetSdkVersion 28 to 27 from app level build.gradle
This helped me solve my problem but it is not a viable solution anymore because google wants all the apps to have a targetSDK >= 28 until August.
After reading some StackOverflow posts I found the solution to this problem without changing target SDK.
The problematic line is canvas.clipRect()
when used with Region.Op.Replaced
To fix the error you have to:
Region.Op.Replaced
from every canvas.clipRect()canvas.save()
and canvas.restore()
e.g ` canvas.save();TL;DR Source code