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 Build a Weather App (2015) Hooking Up the Model to the View Using Butter Knife for Views

Cant include ButterKnife into the project. I tried to these lines of code into the gradle but it doesnt work

buildscript { repositories { mavenCentral() } dependencies { classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' } }

apply plugin: 'com.neenbedankt.android-apt'

dependencies { compile 'com.jakewharton:butterknife:8.0.1' apt 'com.jakewharton:butterknife-compiler:8.0.1' }

Seth Kroger
Seth Kroger
56,413 Points

Are they in the app's build.gradle file, and not the projects? What error messages are you getting?

I tried to follow the guidelines in here https://github.com/JakeWharton/butterknife#download to install ButterKnife into my project, but they didnt work. I pasted the lines of code that can be found in the "download" section into build.gradle (Module:app), but I got an error. Failed to syn Gradle project "stormy" : could not find com.android.support-annotations: 23.3.0

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

Open the SDK Manager and update the Support Libraries and Repositories under SDK Tools.