Updated to Android Studio 1.0

I wanted to implement support for a device but the project was not compatible with Android Studio 1.0. With these changes it should work. Could not test the signing and uploading part though.