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
breyonnamingledoff
2,600 PointsError?
I have been working on adding Parse and have been have a lot of difficulties! I tried to Test to see if i set up properly and keep getting this? Error:A problem occurred configuring project ':app'.
Project app: Only Jar-type local dependencies are supported. Cannot handle: C:\Users\AndroidStudioProjects\Ribbit\app\src\main\libs\bolts-android-1.1.4.jar.properties
testObject.saveInBackground();
What am I doing wrong?
4 Answers
rp74
7,462 PointsGo to Parse's website and look up how to use gradle to import the library. look here : >https://parse.com/apps/quickstart#parse_data/mobile/android/native/existing. Make sure to resync your gradle files after adding the dependencies. After looking closer at the error you don't need the ".jar.properties" file just the ".jar" file. If you don't see the .jar file extension it may be because you are not showing common file extensions in explorer. Go under tools menu>folder options>view and look for hide extensions for known filetypes, uncheck it.
breyonnamingledoff
2,600 PointsI was using gradle?
rp74
7,462 Pointssorry changed my answer look again.
breyonnamingledoff
2,600 PointsError:(22, 0) Gradle DSL method not found: 'compile()' Possible causes:<ul><li>The project 'Ribbit' may be using a version of Gradle that does not contain the method. <a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin. <a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
this is the error i am getting now
rp74
7,462 PointsTry restarting Android Studio and do a gradle resync as well as a Rebuild your project. Oh and quit adding new answers just comment on my answer , makes it easier for other people to follow what is going on if they have same problem.
breyonnamingledoff
2,600 PointsAfter working on this ALL day i was impatient! I ended up solving it by watching a youtube video https://www.youtube.com/watch?v=ZhyqvhOXm48.