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 trialGi Devs
12,171 Pointssql2o importing
I cant seem to get the sql2o to import, neither by typinjg it manually or by auto import what can I do to fix this?
2 Answers
john wayne
Courses Plus Student 1,679 PointsI had the same problem.
Go to "Settings" and then "Gradle", look if "Offline work" is checked under Global Gradle settings. If it is, uncheck it and refresh the project.
That was my problem, I don't know why it was checked. Hope this helps!
Test Test
21,581 PointsI had that problem. If inserting dependencies directly into the build.gradle does not work do this: Project Settings -> Modules -> Dependencies -> Choose <Module source> -> click on plus sign then add library from maven -> choose sql2o version 1.5.4.
Gi Devs
12,171 PointsGi Devs
12,171 PointsI took a look at that and it was fine, but I took a peek back at the build.graddle and as it turns out I forgot the g from org