Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

Android Studio Installation Questions

I'm all about learning from mistakes, but at this point after going through so many steps installing Eclipse for both this course and the Stanford 106A, I'm tired of burning hours on just the tools.

So, I installed Studio, and my first project told me that I had a "blank space". Internet reading told me this would lead to further horror, and it seemed (from reading) that since I'm on a computer that I inherited where the files I use daily are under "New User" that could be the problem.

Well, hells. I transferred the file to a spot on my main drive because it was a place I could access from another user name I created that could load the thing, as just changing the user name didn't actually change the names of the paths. (I am coding on an old machine that I don't have enough memory where I trust it won't die if I dual-partition and set up something in Linux). It did open there--error message disappeared, but SDK is missing. I'm between jobs, and since I live 2 blocks from the library--I don't have internet at home. Which, is another question, because what I did get to open appeared to tell me that gradle can be run offline--but I'm wondering how THAT would affect things.

The solutions on the web to the blank space thing all had to do with cryptic ways to handle in gradle, but since this is my first experience with Studio--I had no clue. I do all my courses offline with iTunes, and if I do it under this created user name, I'm just stuck transferring all the videos to this new identity--thinking there must be an easier way

So, I'm back to try make everything work. Also, the video said that the correct file to open was the 'studio64', and I'm wondering if that is the correct thing if your machine is not 64. There are a few executable files in the download.

I know this is too long of a post, but I didn't know how to address everything in a shorter way.

4 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Hi Eileen, which OS are you running? I made some convenient bundles in the Build a Simple Android App course that should help (Mac, Windows). Have you tried those, or are you working on a different project?

I've never tried Gradle in offline mode, so I'm afraid I can't help with that specifically.

Thanks Ben... I appreciate you getting back to me, but unfortunately I have been dealing with a head cold that seems to have led me to insanity. I'm actually back on Windows Vista... for some reason the bundles you loaded have seemed to lead to crashing. Good news is, it seems I probably have the temperament to become a programmer, because I keep trying to slog through this whole thing, and every programmer I used to hang with "years ago" told me it was this dogged determination to make stuff run that made them a success.

But, I am losing my mind on this thing. And I posted after a few nights when I got no sleep--- so, think I'm going to go try to sleep and actually try to post a coherent answer?

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Haha, indeed, it sounds like you will make a fine programmer! One of our iOS teachers spent the better part of a day yesterday working on a super frustrating problem that was the result of something that had changed in the latest beta.

Getting started with Android used to be such a pain, but it has gotten much better. Well, for the most part, I guess! After some rest, let me know the details about your specific error so I can fix my bundle if I need to. I only tested on one Windows computer because I only have Macs, so perhaps I need to fix something there. Though with Windows we may never get a 100% perfect solution.

The actual error message I get is (I decided to re-install and start from scratch): "Your Project location contains whitespace. This can cause problems in some platforms and is not recommended." The problem seemed to be due to the fact that it created to the C:/Users/New User since I just used the default locations on my machine for doing things.

So, I have now created an AndroidStudiosProjects folder that is not in the New User, but I can access from there (changing the name of the User did not actually change the path names, and so, kept the space). Is there any reason you could see me creating a new folder outside being a problem? If it might be, I'm guessing I just redo everything under a different user name?

The SDK not being found showed up again (didn't have that problem when I just did your Studio setup as separate course), but now that I'm awake again I just went in and set the path, so THAT is fixed.

So, everything seems to not point at your bundle --- but, !#@$, yeah Windows-- making life worse with every update.

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Sorry I missed your reply here! Are you still stuck at this point? Yes, white space in the path can be quite a problem. :( Pointing to a different folder is A-OK.

I ended up creating another user on my machine and re-installing everything there. Pointing to another folder had a few other weird things happening (don't recall now), so I bit the bullet.

btw, really appreciate that instructors here are active in the forum.

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Cool, glad you are progressing, though I'm sorry it was a pain! We try to be as active as time allows. Since we don't meet you in a classroom we need to do it here!

Hello Duclos, Can you please summarize the whole points, let me see if i can help you. Thanks

Hi, Sir Ben, Can someone request an android Project tutorial from you?

Ben Jakuben
Ben Jakuben
Treehouse Teacher

I have my next 6 months planned out pretty well, but I always welcome feedback. What are you looking for?

Ben Jakuben . Thank you sir ,, for your quick reply, i want to focus in the area of mobile networking. Where and how would you advise me to follow? My area of concentration?

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Check out the Android track, which includes building a messaging app called Ribbit. We send photos and videos, so changing it to send text should be trivial because photos and videos are harder than plain text.