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.
Related
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.
Recently i've started android training, and i've got the below 2 issues.
In my desktop i already had eclipse installed, and when trying to import the android plugins, I was getting some error, so what i did was downloaded eclipse+android package from android developers website and I copied it onto my programs files folder where java is installed and when i open it, it is throwing me an error saying the javaw is not found, goinf through the earlier posts on SO website, i've tried the below.
-vm
\adding the java path
But this didn't work for me. so what i did was installed the same package in my laptop(there is no another eclipse on my laptop). and it started working fine.
On my laptop in the eclipse+android package i write a program and when i hit the Android virtual device manager, it asks me to create a AVD, and when i've filled the entire data here, the OK button is still greyed out. Below is the screenshot.
Also i've tried to create by creating from Device definition,even here i'm not getting the ok button hoghlighted and below is its screenshot
please let me know how can i fix the above issues.
Thanks
Firstly you need not wonder for such a mess ..
For IDE purpose .. go to this link .. https://developer.android.com/sdk/installing/studio.html
Android Studio IDE contains all you need .. Just download ..extract and start creating your first Android project.
And now for tutorials to learn .. try these site ..
(1) https://buckysroom.org/videos.php?cat=6 ( Travis ... provide best tutorial in this world )
(2) https://developer.android.com/index.html
Now you are good to go ..
You can see it clearly says: "CPU/ABI: No system images installed for this target"
So either:
Lower your target.
Update your SDK.
Then set a CPU and you can go on in the AVD creation process.
update the sdk, install ARM/intel(x86) for CPU/ABI
Try using Android Studio by IntelliJ ,as it is for more better than eclipse and moreover ADT plugin for Eclipse is no longer in active development.
if you then also get the same error again try this link android Developer and setup java environment.
I am new to the android development and when i create a new project using eclipse juno on mac OSx i got an error at runtime Failed to instantiate com.android.menubar.internal.MenuBarEnhancerCocoa
And yes on the layout file it also says- The project target(Android 4.1) is not properly loaded.
Anyone please help me how to get out of this. Thanks in advance..
And yes everything was setup properly SDK and all, because this whole setup is running properly on one of the other system.
I had the same problem but managed to resolve it. com.android.menubar.internal.MenuBarEnhancerCocoa - was not in the SDK that was linked to Eclipse install (I have multiple for various reasons - e.g. AppEngine not supported in latest Eclipse). There were a number of steps I had to do to resolve this (so any one of them may be the actual fix or a combination may resolve the problem).
Here's a checklist :
If you have installed Eclipse - click the Android SDK manager icon. Ensure it is pointing to the latest Android SDK (R20 as of writing)
As it's a new Eclipse+SDK - add the build targets by selecting from the list of targets that appear in the SDK manager. Also add Android support tools
Restart Eclipse. When asked about he workspace - create a new one. I thought some of my problems would be linked to old projects.
The problems should have gone away. One final thing is, once you create a project - check your certificates have not expired. There's another thread on updating the debug certificate (Delete your keystore located in ~/.android/debug.keystore then restart Eclipse.)
Create a new AVD target.
Hope those things help.
It appears to me the com.android.menubar.internal.MenuBarEnhancerCocoa is only there to make the android app feel nicer if it's run directly. Then preferences and about will be in the application menu. If you run the android sdk manager from eclipse, then eclipse will take over that part of the application menu.
Although it doesn't sort out the issue it may be useful anyway. There's the web page with the sources MenuBarEnhancer where there's the call to instantiate the com.android.menubar.internal.MenuBarEnhancerCocoa class.
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.
I am having trouble getting the Android Development Tools to install. I overcame one error involving the GEF. I now have a new error.
Missing requirement: Android Development Tools 0.9.6.v201002051504-24846 (com.android.ide.eclipse.adt.feature.group 0.9.6.v201002051504-24846) requires 'org.eclipse.wst.xml.ui 0.0.0' but it could not be found
I am running Kubuntu 9.10 and Eclipse 3.5. I have managed to get the Android DDMS to install. But I keep running into blocks with the Development Tools. I have the Android SDK installed.
What do I need to do in order get the missing component?
Ran into the same problem, and after a bit of searching, I found this:
http://code.google.com/eclipse/docs/faq.html#wstinstallerror
It looks like fedora ships with the official eclipse repository disabled by default. (was true for me on fedora 12 64bit) You need to go to Help->Install New Software, click on the "Available Software Sites" link, find the official repository in the list, and enable it.
I never use Eclipse classic as ADt requires wst..install eclipse j2ee or modeling to fix missing components
I ran into this when I did not precisely follow the order of the installation instructions. Delete your eclipse install and reinstall, run update until it doesn't find anything new, then install the android plugin checking the box that says to search all sites for required packages. It should clean it right up. You'll still need to do all the configuration in the developer.android.com instructions for installation.
Had the same issue.
I had to add the plugin for (in my case) galilio, by adding
http://download.eclipse.org/releases/galileo in the install new software tab,
then selected each of the WST packages (the xml one alone didnt resolve it).
They were listed twice (same version, different checksums), so I choose the first of each.
HTH,
Stuart
I was having this trouble for a couple weeks then i noticed my Anti-Virus icon (AVG) kept popping up beside my clock when i normally have it hidden.
I disabled my anti-virus and the web link scanner and tried again.
Worked fine.
Hope it helps.