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

背景图稍微大一点,Android就crash #50

Open
afinal opened this issue Apr 10, 2017 · 3 comments
Open

背景图稍微大一点,Android就crash #50

afinal opened this issue Apr 10, 2017 · 3 comments

Comments

@afinal
Copy link

afinal commented Apr 10, 2017

楼主,背景图稍微大一点就crash了,我用的图片是191KB(算不上大图),然后就crash了,然后我把background换成颜色,然后就成功运行了,然后我把背景色换成一个小图,100KB,也是可以正常运行的,我在android studio看到的日志,见附件
2017-04-10 05 14 26 pm

@ghost
Copy link

ghost commented Apr 12, 2017

明显是你这个图的尺寸太大了,Android中位图消耗内存和长宽位深度有关,跟占用磁盘大小没关系

@afinal
Copy link
Author

afinal commented Apr 12, 2017

1920*1080不算大吧

@xudaolong
Copy link

@afinal 删掉build 然后重新build就可以了

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

2 participants