Upgraded sdkmanager to 0.12.0
Upgraded build tools to 20
Prevent NPE
Prevent crash
Set version to 3.1.1