Trying to follow along a course on teamtreehouse on building an android weather app. The teacher is able get there app to run inside the emulator and crash, but mine won't even run in the emulator and just gives me a bunch of errors. The teacher has pointed out that there is intentional errors that will be fixed later on.
Asked
Active
Viewed 580 times
-1
-
Have you tried the `gradle clean` action? Sometimes the gradle cache gets messed up and simply cleaning it fixes the problem. – Mathias Berwig Mar 14 '19 at 23:47
-
How would i go about doing this? I am fairly new to android studio? – CalcGuy Mar 14 '19 at 23:50
-
It should be available on the menu `Build > Clean project`. You can also open the terminal (on the bottom-left of AS) and run `./gradlew clean`. – Mathias Berwig Mar 14 '19 at 23:53
-
That does not work. – CalcGuy Mar 14 '19 at 23:59
1 Answers
3
Try adding this to your app/build.gradle
as noted in this answer:
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

Mathias Berwig
- 488
- 5
- 13