TechBlog
Saturday, June 23, 2012
Remove unused resource from Android project
Run lint under '/SDK/tools/lint', save the output to file.
lint . |grep 'to be unused' > /tmp/unused.txt
Remove all unused resouces.
rm `cat /tmp/unused.txt | gawk -F: '{print $1}' |sed -e 's/ *$//'|grep png`
Rebuild the project with 'ant release'.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment