解决方法
for i in $(lint . | grep 'The resource R.string.* appears to be unused' | perl -ne 'print "$1\n" if /R.string.(.*) appears/'); do perl -pi -e 's/.*<string name="'$i'".*\n//' res/values*/strings.xml; done
for i in $(lint . | grep 'The resource R.string.* appears to be unused' | perl -ne 'print "$1\n" if /R.string.(.*) appears/'); do perl -pi -e 's/.*<string name="'$i'".*\n//' res/values*/strings.xml; done