Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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