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 Simple Android App with Java Basic Android Programming Accessing Views in Code: Declaring Variables

Grade project sync failed

When I restarted Android studio to continue this lesson an error came up while it was attempting its load build and I cannot seem to pin point the source of the problem unless its a problem initiated by upgrades to android studio since these lessons were done. This is the error ; 'Could not find method testCompileOnly() for arguments [project ':base'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.' I would appreciate any assistance with this as I cannot run the app to see changes in my code

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

John;

What version of Android Studio are you using? There is some information here that might be helpful in the update process: Migrate to Android Plugin for Gradle 3.0.0.

Post back with further questions or to let everyone know if you got this resolved.

Best wishes,
Ken

Thank you for the reply on this topic, unfortunately I did not get the issue resolved with your advice and help so I am going to restart a new project and start back at the beginning in case it was some silly I did on route to here, thanks again for the help

Johnny