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 trialLi Lin
5,007 PointsSDK Manager "Nothing was downloaded"
I am running Android Studio on a Mac and got stuck on when I had to update on the SDK Manager.
They say that nothing was downloaded when I click on update. Even though I downloaded Android Studio from the Teacher's Notes, I was missing the image when I was trying to run the emulator.
I've searched on Google and they say I need to run it as an admin, but even when I follow their instructions (right click, run as admin) enable everyone to read and write, it doesn't work.
Been trying for 2 days and stuck, please help!
6 Answers
Gunjeet Hattar
14,483 PointsHi Li,
I would advise delete the current installation of android studio. use something like App Cleaner for Mac. It also deletes content that may be stored elsewhere. it's free and completely safe.
Once you've removed the older version of Android Studio go to Android Developer Official Site and download the latest Android Studio rom there. Click on the button Download Android Studio Beta v0.8.6 with the Android SDK for Mac
Once downloaded just drag the dmg to applications and you are done.
The links in the tutorial, here in Threehouse might not be current, so there could be issues.
Let us know if this helps
Luis Carlos Rúa Sánchez
Courses Plus Student 1,754 PointsI still have this error: Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly.
Gunjeet Hattar
14,483 PointsYou mean after you downloaded it from the official android website?
Luis Carlos Rúa Sánchez
Courses Plus Student 1,754 PointsGunjeet Hattar, yes in the very begining of a new project. That happen in the mac and the windows partitions i have installed
Gunjeet Hattar
14,483 PointsFor the first opening project, on a fresh install, Android Studio downloads some content for gradle from the internet. This take a while. On a normal connection 3-5 mins.
Are you connected to the internet when opening the first project?
Luis Carlos Rúa Sánchez
Courses Plus Student 1,754 PointsYes im connected to the internet via ethernet
Gunjeet Hattar
14,483 PointsThats strange. I've not come across such an issue in the past. But I did however did a quick google search and seems like the problem has been around ever since the latest version of Android Studio.
Well not sure if you've already tired them out, but this is what have worked for others in the forum elsewhere
First find what version of gradle is used in android studio. I had 0.83v of studio and 1.12v of gradle.
Download version of gradle from WWW.gradle.com/downloads/ by specifying its version. Dont download the latest version(.20). It does not compatible with android studio as they are working on it.
Unzip to a location safe ( I put it in program files under gradle folder)
Go to environment variable in system properties under advanced tab and add values of this chosen directory with name GRADLE_HOME in both user and system variables.
Delete the files related to android studio and gradle in users/user_name directory in the windows main disk.
Start the android studio (without internet) and it prompts for setting. Give no setting option and start new project( it shows some error).
Go to file-> settings-> gradle -> use local gradle distribution it will show that location is deduced( thanks yo environment variable) and click apply. And close the setting window
In toolbar click the sync with project icon (look similar to chrome icon with a down arrow in green). Its called the gradle icon. Make sure you turn on the internet. Background process at least 2 mins upon your net speed will download some files.
Go to settings in file menu -> gradle and select offline work in global gradle setting and click OK.
If this doesn't work I have a few more solutions at hand from the forums.
Luis Carlos Rúa Sánchez
Courses Plus Student 1,754 PointsI get this Error:(5, 0) Build script error, unsupported Gradle DSL method found: 'jcenter()'!
Possible causes could be:
- you are using Gradle version where the method is absent (<a href="open_gradle_settings">Fix Gradle settings</a>)
- you didn't apply Gradle plugin which provides the method (<a href="apply_gradle_plugin">Apply Gradle plugin</a>)
- or there is a mistake in a build script (<a href="goto_source">Goto source</a>) After all the steps
Gunjeet Hattar
14,483 PointsIt's had been quite a gradle day yesterday :) . My colleague just started using Android Studio, and she ran into similar problems. What worked eventually is when she downloaded the android studio again (Mac version) and did fresh install (removing the older one using app cleaner)
I'm not sure how valid it is, but I was reading in this forum that a new fix is available with the latest download. Maybe you could try that.
Li Lin
5,007 PointsYES you are right! the SDKs are now updating!! Thanks so much Gunjeet, you are the best!
Gunjeet Hattar
14,483 PointsI'm glad it worked. See you around!
Tim Offutt
Courses Plus Student 1,267 PointsI'm having the same issue with windows version with Android Studio and Eclipse and ideas? Thank you.
Christopher Rosenau
388 PointsI had this issue as well. I restarted Android Studio. It popped with the firewall message and I made sure to check mark both private and public networks and hit allow access. This resolved my problem.
Luis Carlos Rúa Sánchez
Courses Plus Student 1,754 PointsLuis Carlos Rúa Sánchez
Courses Plus Student 1,754 PointsI select best answer by mistake actually i have not solved the problem
Luis Carlos Rúa Sánchez
Courses Plus Student 1,754 PointsLuis Carlos Rúa Sánchez
Courses Plus Student 1,754 PointsI select best answer by mistake actually i have not solved the problem