I followed a tutorial to install Eclipse and the Android development files onto an Ubuntu (Lucid) installation and Iv a feeling things are not quite right.
The tutorial can be found here.
The problem seems to be that because everything was installed into the /opt folder I am unable to load any of the sample files because of course they are read only, and I'm unsure about how safe it would be to run Eclipse as root.
My thoughts were to remove all of the Android files and start again and set the location in my /home folder somewhere, but I am unable to find any information on actually removing it (Or if this is in fact the best thing to do).
Here's what you need to do:
Install the latest java JDK.
Within eclipse, install the android ADT plugin http://developer.android.com/sdk/eclipse-adt.html
Download and install the android sdk http://developer.android.com/sdk/index.html
Run the AVD manager (in the android sdk) to install the platform components. (this can be ran from within eclipse)
In eclipse, go to preferences/android and set the SDK path.
Create an android application!
Good luck!
Related
Want to set up a linux server only to build and test, and I found Android does not offer sdk only package anymore.
Previous sdk download page was redirect to studio download page.
I need android sdk package. but now Android only supply the sdk-tool, in my mind sdk-tool/ is under sdk/, like path-to-sdk/tools. When android project builds, I need to set env $ANDROID_HOME, and $ANDROID_HOME is the directory of the sdk/ not the sdk/tool/
I try the android-studio-linux, but the pack I unzipped can not found android sdk, it seems android download sdk on first run.
I try the to find the android-sdk, but only get the older releas.
Please give me some suggestion, how to build android apk in non-gui linux server, the server is Ubuntu 64bit.
Well they still offer, they just have moved it to bottom to promote Android Studio more over other other IDEs.
Check the bottom of the page or just use this link to download it for linux. You can very well use gradle to build and package your app so if there is actually no compulsion of using Android Studio.
Update Also this document explains how to develop Android apps/libs from commandline.
I want install android on my computer but using the sdk it fails to download the packages due to my speed i think. I have extensively googled for several days but could not find any result i found a page which showed a way using the abyss server to install but lost it due to a powercut and could not find it again.
If any one could share a link or a tutorial of installing android sdk and using it with eclipse would be great help.
I think you should try following Step in Process of making Android Development Environment .
I hope you have already Eclipse .if you don't have then get it from here and Latest Eclipse is Version 3.7.Eclipse for Java
Step 2: As you have problem of internet speed try to Download Zip File of Latest ADT tool from this. Android ADT Plugin
Use this ADT Zip describe in this SO -->SO link ADT install
after done with add zip in Eclipse you need internet connection.
STEP 3: Now for Android SDK you can download this android-sdk_r17-windows.zip which have small size from this Developer Site -->Android SDK
when you put this Zip in your computer and unzip it and Download one of Android SDK Platform from this Site -->SDK Platform Offiine.
STEp 4: Now when you get one of SDK Platform you need to put that in this for Example in my PC .I have following path .
E:\Android_development\android-sdk\platforms\put here your SDK Platform Folder.
your path of android-sdk may different .
STEP 5: don't forgot give Path of your Android-SDK to here in Eclipse.For give path go here in Eclipse
Window-->Preferences-->Android now in SDK Location Box
Provide Location of Android SDK Some thing like this
E:\Android_development\android-sdk
Go to http://dl-ssl.google.com/android/repository/repository.xml, and select the sdk platform version you want to install and then copy paste the appropriate platform android-x_rxx-windows/linux/macosx.zip you want to setup,
http://dl-ssl.google.com/android/repository/android-x_rxx.zip
After you download it, go to your
SDK-Installation-Path (C:\Program Files (x86)\Android\android-sdk\platforms in Windows). Create a Folder named android x and extract all zip contents into the android x folder.
Close the SDK Manager and reopen it. You will find the SDK platform for the android x will be shown as installed.
This tutorial explains it in detail,
How to install android sdk platform offline
I have Eclipse (Indigo Service Release 1, Build id: 20110916-0149) running on Win XP.
I've added
https://dl-ssl.google.com/android/eclipse/
and installed 4 plugins, including ADT, and restarted Eclipse.
Installed software list shows Android plugins are installed.
But nothing appears in Preferences, and there are no Android-type project in New Projects.
Later I check Eclipse's directories and there were four *.jar archives with these Android plugins, and they weren't unzipped to corresponding directories (like other plugins). I unpacked them so directories same as *.jar names, and started Eclipse again, but nothing happens.
How can I work with ADT plugin in Eclipse?
I just had the same problem on windows 7 running Indigo. I eventually discovered that I had accidentally not run Eclipse as an administrator when I installed the ADT plugin. I solved the issue by uninstalling the ADT plugin, and then re-installing the ADT plugin when running Eclipse as an administrator. Once I did that Eclipse restarted and immediately prompted me for the location of my android SDK.
As far as steps go:
Run Eclipse as Administrator
Go to Help > About Eclipse SDK > Installation Details
Select Android DDMS, Android Development Tools, Android Hierarchy Viewer, and Android Traceview
Click Uninstall and click through the dialogs
Restart Eclipse at the prompt
Close Eclipse and re-run it as an administrator (not sure if this was necessary but I wanted be sure Eclipse had full permissions when I reinstalled the ADT Plugin)
Re-install the ADT plugin the way you did before.
Restart Eclipse at the prompt.
Q: Did you install the Android SDK?
You need to do this in addition to installing a) Java, b) Eclipse and c) the Android plugins for Eclipse
Here's one (of many!) "Quick Start Guides" for setting up Android on your development PC:
http://www.talkandroid.com/guides/developer/android-sdk-install-guide/
PS:
Please don't "unpack" anything, except unzipping Eclipse itself.
You might actually wish to delete your install and re-install from scratch (just to make sure there isn't anything "weird" in your environment).
Well i had this issue as well, but what i see its one componment that isnt on the google servers (at least for indigo) com.android.ide.eclipse.adt_20.0.0.v201206242043-391819.jar
you need download the ADT from google server ADT 20.00 and the install new software in help menu as always
In the Add Site dialog, click Archive.
Browse and select the downloaded zip file.
Enter a name for the local update site (e.g., "ADT-20.0.0.zip") in the "Name" field.
Click OK.
and done choose the ADT developer that i bet you dont have installed that should fix the problem ;)
I tried everything and nothing worked until I made my JAVA_HOME and PATH point to my JDK 6, they were pointing to the 5, then before installing the ADT plugin, make sure Eclipse is using the JDK 6 in Preferences/Java/Installed JREs. Of course make sure you are running/installing everything as an administrator.
You should install start SDK package (download), after that install android packages by windows/SDK manager. After that you§ll see everything you've mentioned
I encountered the same problem today, and a simple removal of the installed plugin is not helpful. My final solution is:
Remove the Android DDMS, Android Development Tools, Android Hierarchy Viewer, Android TraceView and Tracer for OpenGL ES first.
Remove the com.android.ide.eclipse.adt.package_version_info and other adt related jar directory under eclipse_home/plugins/. It is very easy to recognize based on its version_info on its name.
Modify the artifact.xml under eclipse_home, remove all artifact tag related with 'adt'.
Reinstall Android ADT again with Admin Privilege.
If you are going to reinstall as administrator make sure to remove the ADT Plugin from the Windows > Preferences > Install/Update > Available Software Sites.
Also something that may help is when installing the ADT Plugin you get the option for Developer Tools which the http://developer.android.com/sdk/installing/installing-adt.html guide tells you to select, but make sure to also select NDK Plugins.
And as usual do this while running as administrator. It probably doesn't make a difference but instead of clicking restart I closed Eclipse and reopened as administrator each time it was necessary.
As far as I can tell the NDK Plugin was the only thing I did differently when I finally got it to work.
I have Ubuntu , to make story short, I tried every advice here, nothing helped (reinstall, ADT removal- adding, run as sudo, deleting .eclipse folder etc).
The cause of problem was running eclipse updates.
So, I downloaded ADT bundle as zip - adt-bundle-linux-x86_64-20130729
unpacked it, run eclipse inside it, used existing workplace, and it worked, 'android' option appeared in Preferences.
However, there is no longer 'eclipse' splash logo at start-up, it's now called Android Developer Tools
Build: v22.0.5-757759
The real solution to this issue is that you MUST run Eclipse as an Administrator before you install. There are a number of plugins that have this same issue.
I've already installed android sdk and the adt plugin on eclipse helios* on windows 7. when i go to preference, however, i got a problem in locating my sdk location. my sdk location was "C:\Program Files\Android\android-sdk\platform-tools". it says "Could not find folder 'tool...roid-sdk\platform-tools\'". I also tried to update android sdk, but it says access denied.
I've been looking into some forums about this, but i only found those that has problems locating the adb.exe on their folders. Any help would be appreciated, because i badly need to develop an android app for my thesis and tech presentation. thank you very much.
*eclipse helios is not really installed, I'm using its program files that i copied. i don't know if installing it or just running the files will affect the android sdk, so..yeah.
I found my SDK location in the following way (I have Windows 7 OS, and I use Eclipse):
In Eclipse: Window -> Preferences -> Android.
There, you can find it in a textbox, near the label "SDK Location".
I hope it will help someone in the future.
Judging from what's configured in my Eclipse (and I can work with Android, launch Emulators and all, so it's configured OK), you should not use the following path :
C:\Program Files\Android\android-sdk\platform-tools
But only this one :
C:\Program Files\Android\android-sdk
Basically, you should indicate the path to the directory that contains the whole SDK, and not to the platform-tools directory.
I've installed the Android SDK and the ADT plugin, but Android doesn't show up in the Window>Preferences... dialog.
I'm running Galileo. If I go to the Installation Details part of the About Eclipse dialog, it says that I have 0.9.6 of Android DDMS and Android Development Tools. I can run adb from the command line. I tried going around the uninstall/reinstall loop once.
I'm on Windows Vista. I also have 2.7.7 of the Scala plugin installed, but I tried uninstalling that.
Any ideas on what I should try next? Thanks.
Is your eclipse installation running from the "Program Files" or "Program Files (x86)" folder?
This was my case and I had this particular problem and a few more.
What I did was to place a fresh copy of Eclipse in a different folder (e.g. c:\dev), launch it and to install the Android Plug-in using the Eclipse Update and it seems to work fine now.
I did not need to download again the Android SDK.
Sounds like you are missing a dependency. What you're describing happened to me once (I can't remember for sure, but I think it was with adt).
From http://developer.android.com/intl/de/sdk/eclipse-adt.html#installing:
Note that there are features of ADT
that require some optional Eclipse
components (for example, WST). If you
encounter an error when installing
ADT, your Eclipse installion might not
include these components. For
information about how to quickly add
the necessary components to your
Eclipse installation, see the
troubleshooting topic ADT Installation
Error: "requires plug-in
org.eclipse.wst.sse.ui".
I had the same problem. Seems to be related to where Eclipse is installed, the path should not contain spaces, like David suggested.
I installed a fresh copy of Eclipse to c:\Dev and installed the ADT. Now everything works fine.