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 trialAhmed Helmi
6,032 Pointsgot bug in android studio
i did follow all instructions about installing and working on android studio . but i got that bug after setup FunFacts Failed to refresh Gradle project 'Fun Facts' Error:Could not GET 'http://jcenter.bintray.com/org/ow2/asm/asm-analysis/4.0/asm-analysis-4.0.pom'. Received status code 403 from server: Forbidden Enable Gradle 'offline mode' and sync project C:\Users\Ahmed Helmey\Desktop\FunFacts\app\build.gradle Warning:(9, 25) Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.
3 Answers
ilias Georgakopoulos
22,866 PointsI found this solution online.
Solved this by deleting the gradle folder. It downloaded the libs and solved the dependencies on its own,
ilias Georgakopoulos
22,866 PointsI also downloaded the android studio from the official site because i noticed a huge difference between the two files sizes. I hope your error will be fixed. I also once had a problem with gradle when i wanted to transfer a project from eclipse to android studio but i don't remember how i fixed it.
Ahmed Helmi
6,032 Pointswell i found out that the internet provider was blocking "http://jcenter.bintray.com/org/ow2/asm/asm-analysis/4.0/asm-analysis-4.0.pom" so i called them and finally i got my problem fixed . thank you ilias Georgakopoulos for ur help :)
Ben Jakuben
Treehouse TeacherGlad you got it working, Ahmed! Ilias, the different file sizes is because the bundle we host for Treehouse includes the 4.4.2 SDK and AVD image for the emulator. With the regular bundle from the Android developer site you will need to download these (or use a different SDK and emulator image).
Ahmed Helmi
6,032 PointsThank you Ben :)
Ahmed Helmi
6,032 PointsAhmed Helmi
6,032 PointsThx mate . but i have tried that . but still getting the same error :(. iam going to download android studio from http://developer.android.com/ . hope it will work thank you again
David GΓ³mez
4,389 PointsDavid GΓ³mez
4,389 PointsI was having the same problem, deleted the gradle folder and everything is perfect now :D