Eclipse Juno - MainActivity won't create/ missing AVD - android

So I'm back into the "I want to create an app" mode so I downloaded Eclipse Juno from the google developer site last night and updated most of the stuff in the Android SDK Manager. But I have two issues:
Although I can create an android project, the MainActicity java file won't create under "src" folder. I definitely get to choose which activity I want in the project creation wizard. I have no idea why this happens.
I really need to use a virtual device for my app development, but why does Juno has no device to select? Sometime last year, I remember the previous version had many choices for AVD and I could easily debug.
I am completely lost on this and actually installed Eclipse twice in the last two days thinking it's something I've done. Can someone guide me?
Thanks

Related

Android Studio SDK download location

Ok, so my questions not really about programming, but it concerns Android Studio so I thought I'd get help from here. Does anyone know where Android Studio initially downloads SDKs?
I don't have a very powerful setup, when I downloaded Android Studio I only had about 30gb in my C:Drive and 70gb in D: Drive.
When I opened Android Studio the first thing I did was, ofc, download the SDKs that I needed. I set the SDK location to D:/sdk Drive.
The problem with that was when it was downloading, I was doing idle stuff, the computer suddenly prompted me that it nearly had no space left. I opened My Computer and saw that C: only had 1gb left. Which was stupid! I chose D: as my SDK location. Now since this couldn't be, and my computer was lagging like hell because of this, I had to uninstall Android Studio, but now the new problem is that I got "some" memory back, but only 9gb! I literally lost 20gb of memory without knowing where it went.
My guess is that it's from those uninstalled, undeleted SDKs, or something. Correct me if I'm wrong? I wanna know if there's a way for me to find those unwanted data. I still plan on reInstalling Android Studio but maybe another time.
General answer if you still have Android Studio installed You can check the download location of the Android SDK from Android Studio in case you have it installed ( Settings -> Appearance & Behavior -> System Settings -> Android SDK ).
In my case on a Windows machine it was C:\Users\$user\AppData\Local\Android\Sdk – so you might have a look in this folder.
I found it. Altho thumbs up to Matthias Wenz, since he pointed me to the right direction. It's in "AppData\local\temp" if anyone's lookign for them too.
In Windows OS, you can find them in the following addresses:
%temp%\PackageOperationXX
Or
%userprofile%\AppData\Local\Temp\PackageOperationXX
like:
%temp%\PackageOperation01
%userprofile%\AppData\Local\Temp\PackageOperation01

Android Studio set up wizard problems

Android Studio forces me to "uninstall previous version" and installs a new version every time I try to open it. I have tried to completely uninstall android studio and i have re downloaded it. The software just makes no sense. If I close my project it takes forever to get back into android studio. Importing projects is a pain in the ass as well. I have tried to follow along the Lynda simple note taking app and it will not allow me to import the material design project. I know its a little off topic but if anyone can help with either of these issues i would greatly appreciate it.

Where is the graphical UI layout on Eclipse?

This is my first time writing Android app. When I downloaded the ADT bundle for the first time, everything went as planned according to the tutorial I followed. I was able to connect to my device and run my "hello world" app. Then, I closed Eclipse and later I came back to play around with Eclipse ide.
Now, I don't see any activity layout at all. I deleted my previous projects and created a new project hoping to see the activity layout or GUI for my device. I can't find it. I was planning on adding buttons or labels.
All I see is this message in the bottom:
This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in
So, how do you enable or bring back the Activity layout.
Here is the screenshot:
You need to update your ADT Plugin in your Android SDK Manager to solve this problem.
These tools should be up to date

New Android Eclipse version won't get to workspace

I'm trying to start out with Android programming (I'm running Mac OS X Lion). I had an old version of Eclipse and installed ADT version 20 in it, and code didn't compile properly. Fine; I hadn't done much in there, and after reading some stuff here it sounded like the easiest thing for the long run would be to put together a completely new installation.
So I downloaded the latest version of Android, with the SDK, from the Android developer Getting Started site, and ran it (in its own directory). I loaded one of my previous workspaces and it said that one wouldn't work because the ADT was version 20 and it needs 21. I figured fine, there wasn't much in there and I'd just start a new workspace.
So I started a new workspace, and here's where the real trouble came: It gives me the start screen with newbie welcome instructions but won't go any further than that. When I try to create a new Android Application Project, it goes through the menus but as soon as I click Finish I get a please-wait circular icon, and little happens. There's a line at the bottom that says "66M of 142M" - it increases slowly into the 80s and then drops back down into the 60s, endlessly. And the links provided on the welcome page (Building Your First App, etc.) don't work - I click on them and nothing happens.
Any idea what's going wrong here? Is there some cruft left over in my system from older versions, which I should delete? If so, how should I go about doing that? If not, what else might I try to get it working?
I can't comment beneath yours because of my level, but you can help Eclipse run faster by giving it more memory. Doing this speeds things up quite a bit.
As far as installations go, maybe try Google's packaged version of Eclipse + Android SDK. The whole package is available here. It's already preconfigured to work and provides eclipse with ADT installed by default. Of course, if you already have an existing Eclipse you want to modify this won't help you too much. But if you're new to Eclipse it's a good way to get started with Android development.

Eclipse hangs while changing properties [duplicate]

Like the question says, no mater what project i try this on, old or brand new, when I right click on the project and go to properties, then select the Android tab (I want to add a library), Eclipse freezes. I have to kill it. Has anyone run into this problem or know how I might fix it?
Thanks
EDIT:
Eclipse SDK
Version: 3.6.2
Build id: M20110210-1200
EDIT:
Or is there another way to add a library. I want to try out ActionbarSherlock :)
Ok, so I don't claim to understand it, but I've tried it more than once and confirmed it. When I'd go to the Android tab in Properties, the window automatically stretches the full height of my monitor and freezes. So, I killed it and went back in, but this time, starting on a different category ("Resource" in this case), I squashed the window height down to almost as small as it could get and clicked on Android. It worked. Didn't freeze. Then I was able to expand the window to see the list of libraries. No idea what it is, but I did it several times...recreating the freeze and then the fix. Hopefully this will save someone else...
i have found the reason ,because the list of available Android sdk is too long ,the window of the property can't be drawn immediately ,so it has no response.
the solution is open the SDK Manager ,delete the old sdk platform ,such as 1.5 1.6 3.0 3.1 3.2
those are not used usualy.then restart the eclipse .it works now .
For these kind of problems you have to try the following (in the same order) and stop when it works.
Play around inside eclipse by closing and opening project, deleting and reimporting projects etc.,
Restart eclipse
Restart system
Upgrade to the latest android SDK
Upgrade to the latest eclipse version
Usually you should stop at 2. Sometimes you need to stop at 3. Occasionally at 4 and Rarely at 5.
Good luck.

Categories

Resources