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

can't find referenced method 'int save(int)' in library class android.graphics.Canvas #56

Open
sune6 opened this issue Dec 19, 2018 · 3 comments

Comments

@sune6
Copy link

sune6 commented Dec 19, 2018

compileSdkVersion=28时,release模式下会报can't find referenced method 'int save(int)' in library class android.graphics.Canvas,在proguard-rules.pro文件中加入-dontwarn com.mylhyl.zxing.scanner.**能暂时解决,出错原因:QRCodeEncoder.java第331行,canvas.save(Canvas.ALL_SAVE_FLAG)这个方法已经被remove了

@mylhyl
Copy link
Owner

mylhyl commented Dec 22, 2018

收到,非常感谢,你可以pull request

@mylhyl
Copy link
Owner

mylhyl commented Feb 22, 2019

@sune6 com.mylhyl:zxingscanner:2.1.3

@yaoligen
Copy link

@mylhyl The error still exits in com.mylhyl:zxingscanner:2.1.4.
“canvas.save(Canvas.ALL_SAVE_FLAG)” in QRCodeEncoder.

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

3 participants