Hopefully square away issues with android studio

I shamelessly stole some code from StackOverflow to make the gradle build work better.  Everything appears to working swimmingly now.