Don't strip R.class from referenced libraries

Hi Jan,

I'm back to android after a long time working on other things.  Please take a look at this PR and tell me what you thing.  If you'd prefer for me to break it up into two separate PRs I can do that too. 

I hope you are doing well.  Any comments are welcome.

Kevin