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

Android

Accessing Command Line

Hello.

I've been trying to access the command line just to enter a simple './gradlew build' command (also dealing with a 'first result from daemon was empty' issue). I've seen many tutorials saying I need to download the SDK separately via the Android Studio download page. I did notice that the bottom of the page said 'tools' instead of 'android-sdk', so I thought they just updated it. When I tried accessing SDK Manager.exe in the folder however, I get an error. In addition, the adb.exe file is nowhere in the file. Am I suppose to download the android-sdk folder? How else am I suppose to access the command line?

Please help.

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

The SDK and build tools you download through the SDK manager in Android Studio should include all the command line tools. However in Windows they are under a folder that's usually hidden from view, the AppData folder in your user folder. (/User/Your_User_Name_Here/AppData/Local/Android). They probably aren't in your PATH, but if you are trying to use gradlew from the command line it should work regardless.

I found 'SDK Manager.exe', but when I open it, I get an error saying: 'Failed to execute tools\android.bat: The system cannot find the file specified'

EDIT: Moving SDK Manager.exe to the root folder worked, now I'm just waiting for everything to install...