试图跟随teamtreehouse的课程建立一个Android天气应用程序。老师能够到那里的应用程序在模拟器内运行并崩溃,但我甚至不会在模拟器中运行,只是给了我一堆错误。老师指出,故意错误将在以后修复。
尝试将此添加到您的app/build.gradle
,如上所述in this answer:
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}