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 Lists and Adapters (2015) Updating the Data Model Getting the Whole Forecast

Hadas Dahan
Hadas Dahan
1,213 Points

Compiling a downloaded example

I downloaded the Stormy2 project example.

I changed the file build.gradle to:

apply plugin: 'com.android.application'

android { compileSdkVersion 22 buildToolsVersion "22.0.1"

defaultConfig {
    applicationId "teamtreehouse.com.stormy"
    minSdkVersion 14
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
}


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

}

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.squareup.okhttp:okhttp:2.1.0' compile 'com.jakewharton:butterknife:6.0.0'

}

But I keep getting the following compilation error:

Task '' not found in root project 'Stormy2'.

Does anybody knows what can fix this?

Thanks,

Hadas

J A
seal-mask
.a{fill-rule:evenodd;}techdegree
J A
Full Stack JavaScript Techdegree Student 4,646 Points

The formatting in your question makes it a little hard to read. Consider pasting everything between triple backticks (`). Anyways, there's an answer on Stackoverflow that might help: http://stackoverflow.com/a/25525390/1577649