Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Android Data Storage with SQLite

Your Completed project for Android Data Storage with SQLite couldn't be compiled in Android Studio.

I download your Completed project file. When I tried to compile it in Android Studio, it reported errors:

Error:Invalid Gradle JDK configuration found. <a href='#open_external_system_settings'>Open Gradle Settings</a> Project JDK is not specified. <a href='#open_project_jdk_settings'>Open Project SDK Configuration</a> <a href="openFile:D:/Start/US/lokete/CodingProjects/SQLite/FriendlyForecastCom/FriendlyForecast">Open File</a>

hi,

Please update build.grade file like this.

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

Second, Please update retrofit version. it should like this.

dependencies {
 compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.squareup.retrofit:retrofit:1.9.0'
}

Last, Please update this file grade-wrapper.properties like this.

 distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip

Good luck. You could find tons of document about these upgrade.