Fixed gradle problems after upgrading to android studio 1.0