Fix errors and some warnings from import to current Android Studio.