Setting up Android Development Environment on Windows 7 - android

I want to start learning Android developement. I have a windows 7 Home Premium Operating System. My problem is I am not able to setup the environment of developing android. Here is what I have done till now.
I have installed Java (both 32 bit and 64 bit versions)
I have installed Android SDK (installer_r08-windows.exe)
I have not yet downloaded any tools or platforms or ADT.
I have downloaded 32 bit eclipse. (eclipse-SDK-3.5.1-win32.zip)
I am stuck at this eclipse setup. A strange thing I observed is that, it does not install. When I click on eclipse.exe, it starts running from there only. I am still not sure if my eclipse installation is proper?
So, I assumed that my eclipse is working fine. Then when I try installing new programs in eclipse, eg google plugin, it gives error.
I want to know, where am I going wrong? What mistakes am I doing?
Can anyone guide me with the complete step by step procedure to setup my android development environment on windows 7?
Thanks in advance.
Jay

to 5: Eclipse don't have a normal installer, its just a zip file you can extract and run from anywhere.
to 6: What errors do you get? (I will update my answer when you deliver more details)
A step by step how to is here: http://developer.android.com/sdk/installing.html

I found I had to relax Windows 7's security settings quite a lot just until Eclipse was fully set up, and then I was able to restore them back to their normal setting.

I want to share my experience of installing environment in windows 7 ultimate.
* I have faced problem with both the version of JAVA 32 bit and 64 bit (I may be wrong). After deleting 32 bit my problem was solved at first time.
* Maximum learner mistake to ensure properly their android environment variables.
So, hope you will ensure that above two problem.
Here I have attached a link where proper installing method has been given with image marking. So, I hope it will help you to setup environment properly.
http://sanathnandasiri.blogspot.com/2011/03/how-to-setup-android-development.html
Thanks for your important time.

Related

Basic Xamarin Android SDK Issue

I've never struggled with anything in programming as much as this Xamarin installation, unbelievably flakey. I've got my environment (VS 2015 Enterprise) to a point whereby I can spin up a new Blank App (Android) but the designer requires a newer version of the Android SDK (apparently):
I've only just installed the latest Android Studio, so I can confirm (in Xamarin settings) I'm pointing to the correct path for the SDK (in AppData/Local etc.)
On opening the SDK manager I can see the latest SDK tools is installed.
Please note: I've also tried running the SDK manager independently of VS (and as admin).
Never had this much trouble trying to get something installed and configured. Any help MASSIVELY appreciated.
Whoever helps me crack this gets a massive bounty.
EDIT:
Found this in the logs, fairly certain this is the issue:
Xamarin.VisualStudio.Android.MonoAndroidDesignerPane Error: 0 : [2016-09-22 16:36:54.2716] System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerDocumentCache.Push(String filePath, AndroidDesignerDocumentCacheItem value) in C:\data\lanes\3513\c4382f51\source\xamarinvs\src\Core\VisualStudio.Android\Designer\MonoAndroidDesignerDocumentCache.cs:line 25
at Xamarin.VisualStudio.Android.MonoAndroidDesignerPane.OpenViewCode() in C:\data\lanes\3513\c4382f51\source\xamarinvs\src\Core\VisualStudio.Android\Designer\MonoAndroidDesignerPane.cs:line 619
at Xamarin.VisualStudio.Android.MonoAndroidDesignerPane.b__66_0() in C:\data\lanes\3513\c4382f51\source\xamarinvs\src\Core\VisualStudio.Android\Designer\MonoAndroidDesignerPane.cs:line 612
EDIT
Bounty is for Jon when it allows me to award it. This issue has already been resolved.
Try to delete your obj/bin folders as it seems you might have an AndroidSdksCache holding the old version. Specifically look for a file here obj\Debug\sdks.cache.
The second note is that you have build-tools 23.0.0 installed. Please uninstall that version and any other old version and install 24.0.2.
It shows the current directory as being C:\sdk1\ when the referenced SDK version is different in your screenshot. You will need to update C:\sdk1\ to the latest Android SDK Tools.
I think that can be many things.
1) some time your user name in your PC if have character specials like accents or spaces. Make problems with the VS.
2) you need check if you install Visual studio Emulator android. After donwload a device and check the api that have that device.
Windows 8 or windows 10 pro.
https://www.visualstudio.com/en-us/features/msft-android-emulator-vs.aspx
DonĀ“t use the generic emulator. If you dont know how configure.
3)Make sure that you have install Xamarin correctly in your VS.
Tool -> options -> Xamarin
you need watch all the green check.
if the android dont have the green check. Search the route when you have install the sdk. For example watch the image. My root for example
Let me know if this solve your problem. Regards.

Installing Android SDKr18, SDK will not detect the JDK

![enter image description here][1]Thanks for taking the time to read my question.
This is not another back, then next problem.
I have installed eclipse classic and jdk-7u3-windows-x64, the problem is when I go to install the android SDK, I get this error:
http://i.stack.imgur.com/V9VIY.jpg
I have been searching the net all night, one solution seems to be for an earlier version of the Android SDK is to click back then next, I have tried this to no avail.
I have also set up a environment variable, this didn't work either.
I have checked that java has definitely been installed, I have run and installed all software as admin. Still I get the same message.
So can anyone out there help me with this issue?
Big thanks in advance for any help!
Nick.
I had similar problem with Windows 7 - 64 bit machine. The installation of the Andriod SDk wil l hang on the screen where it is trying to locate JDK. I had both 64 and 32 bit JDK installed. JAVA_HOME was set to correct JDK (32) bit to C:\Java\jdk1.6.0_13 but the installer will get stuck in a loop and will never recover from the screen.
It is silly really but what I had to do was, to reinstall jdk-6 32 bit in a different directory this time (C:\Program Files (x86)\Java\jdk1.6.0_31) , change the JAVA_HOME to C:\Program Files (x86)\Java\jdk1.6.0_31 and reinstall SDK.
Very strangely it didn't pick up new installation of JDK at C:\Program Files (x86)\Java\jdk1.6.0_31 as set in the JAVA_HOME, instead it picked up my old installation from C:\Java\jdk1.6.0_13\
Someone really need to check their codes at Google!!
But sorted , I am happy
I think all the installed and uninstalling of java caused the above error. Anyway restored my computer back to a certain point and installed the jdk 6 32 instead to start with. The sdk found it straight away.

Motodev / Eclipse freezes up for several seconds when autofill tooltip proprosal pops up

I recently installed a fresh copy of Motodev. When I type the name of object and a period after it a popup comes up with a list of all of the methods available to that object. Ever since I started using this new copy of Motodev if I have an object with a very large amount of available methods this process freezes the whole program for several seconds.
RelativeLayout and EditText are the two that I have personally noticed that this is a problem with, but I suspect any object that has a large number of methods will cause this. It was never a problem before. Has anyone else seen this issue and if so how did you fix it? I do like having the list pop up so that I can see all of the methods available to me so I'd like to leave that feature turned on if at all possible.
Looks like you figured this out already, but I'll say it for future readers. There is an update to MOTODEV Studio specifically to work with ADT 8.0.1. There were some API changes in ADT that required us to update Studio also. ADT 8.0.1 requires Studio 2.0.1, which is based on Eclipse Helios. There are installers on the MOTODEV site as well as an updater for Eclipse.
Because of the complexity of dependencies with all the Eclipse plugins, I suggest to download the .zip archive at MOTODEV rather than using the "Install Updates" method. I find that I get timeouts quite often at home on broadband that don't happen at work with a bigger pipe.
Also, Studio 2.1 will be available some time within the next week (~Jan 25) and will work with the 2.3 SDK and ADT 8.0.1.
UPDATE: 2/14/11 - It would appear that the correct answer is found at comment #8 in this link: http://code.google.com/p/android/issues/detail?id=7850
Tim will need to formally accept this answer at some point...
Which is as follows:
For those of you with this problem, here's what you can do until the fix is publicly available:
1. Download https://android.googlesource.com/platform/frameworks/base/+archive/<branch>.tar.gz where is one of those listed here (froyo-release for 2.2, the file is about 113MB): https://android.googlesource.com/platform/frameworks/base/+refs
2. Extract the contents of base/ in the tar into "/platforms/android-/sources" where is 8 for froyo, 7 for eclair, etc.
3. Enjoy fast content assist in 3.6!
If you are using eclipse v3.6 (Helios) this is a known issue with ADT - the android dev site recommends using v3.5 or v3.4 of eclipse until the problem is resolved.
EDIT: It might be dependent on the version of ADT you are using - I can't find the recommendation to use v3.4 or v3.5 anymore. Perhaps things were fixed with ADT 8.0.x Check which versions you are using anyway.

Can't add Android under Eclipse-plugin on Windows 7 - Not visible

I've tried to search for similar problems, but can't seem to find it.
I run:
Windows 7
Java SE Developement Kit x64
Eclipse Helios (downloaded here from Eclipses homepage --> Downloads --> Eclipse IDE for Java EE Developers --> 64 Bit)
"Android SDK Windows"
I've been following the guide from the Android Developers homepage.
I can launch Eclipse just fine. Under Help --> Install New Software ...
Here, I give it a name myself (Android Plugin Test), and under location, I've typed "http://dl-ssl.google.com/android/eclipse", as said in the link.
Then it find Developement Kit, and I install it and all that & restart Eclipse.
The following are now installed:
- Android DDMS
- Android Development Tools
- Eclipse IDE for Java EE Developers
So everything seems fine.
BUT ..
When I go to Window --> Preferences, "Android" is missing.
I have no problems seeing General, Ant, Data Management etc.
So my question is, what's the problem ?
As said, I downloaded Android SDK, but when I try to run the setup, I get this error, about missing Java:
http://img827.imageshack.us/img827/600/javaproblem.jpg
And that's where I'm lost.
Because, under installed programs, it says:
- Java(TM) SE Developement Kit 6 Update 21 (64-bit)
And yes, I have restarted after installing Java.
For some odd reason, it's not possible for to run the SDK setup with any compatibility. It's greyed out
(Yes, I'm admin, and I don't have any problems on other programs)
I checked the Requirements for Android SDK, and it says Windows XP & Vista, but not 7 .. But as far as I know, other people got it to work.
So .. What am I doing wrong ?
Do you have any solutions ?
If I need to download other Java versions (or anything else), please provide links.
You need to take care of three things...I too faced similar problems so can tell you how to go about it:
1) Download Eclipse -> 32 bit version...since your SDk is 32 bit...make sure ur JDK is 32 bit...
2) After downloading 32 bit version install Android ADT first......
3)Then go to Preference-> Android -> Give the SDk path here......n then download the platforms and samples....
Feel free to ask if your still unable to get it sorted coz i faced similar problems....
If I remember correctly, you need to add your Java's /bin path to your path environment variable by hand. Open your Computer by right-clicking, go to Advanced system settings, then Environment Variables and add the full path to the Path variable. For example, I added ;C:\Program Files\Java\jre6\bin to the existing string.

Trying to set up Android SDK - Please help! Beginner

So I am super new to this, and am not really sure what I am doing.
I downloaded the Android SDK for Windows, but I am a little confused in setting it up/installing. So I read that I needed to set the System Variables Path to the tools/
but I it seems that I would be replacing the Windows\System32?!?!
I should not be replacing this should I?
Windows Vista; already have the Eclipse IDE download and set up (minus pointing at the SDK)
Can anyone help a begginer out with setting this thing up please?
apreciated; thanks!
also: i should metion exactly what I have done...
I downloaded that Android SDK and unzipped it.....that's about it!
The PATH environment variable is a semi-colon (;) list of paths. Just append a ";" + the Android SDK tools path to the end.
I installed the Linux version of the SDK but I can probably still help you. I followed these instructions exactly and everything worked out for me.
The next thing to do after unzipping and adding tools/ to the PATH, is to run 'android' this is a GUI program in the tools/ directory and it will allow you to create at least one Virtual Android platform for the emulator to run. just use all the defaults and the latest android version when setting that up. again all these instructions are available in more detail at the link above.
after you got that part done, you need to install eclipse if you haven't already. almost all Android development is done in eclipse with a plugin called ADT. although it is possible not to use eclipse and ADT, the tutorials and everything expect you to be using it.
after you install that try the hello world program.
add to path, put a ; then add to the end....
I have a blog post about what steps to take on a Windows machine to get started with Android development using Eclipse as your development environment (Windows 7, 64-bit in my case, but I don't think there is anything 7/64 specific in the list). I guess the points could have even more detail (no screenshots), but I basically typed them down so that I would remember them myself.
Getting ready for Android development
This site is an must read for starting android development, lot of good information on how to configure eclipse, installing adt etc.
And next up, get yourself an subscription here:
And the official android developer guide is one of the best I've seen for development platforms.

Categories

Resources