I have an Android SDK which I keep updated with the tools and platforms that I need,I recently felt that it was time to migrate to Google's new Android Studio IDE after Eclipse destroyed my workspace for the zillionth time,instead of unzipping Eclipse I downloaded and installed Android Studio and tried to import a project,it looks like the IDE comes with an SDK of it's own.I would like to add path to my SDK folder and my NDK folder as well.
You've got SDK manager just as in ADT. It didn't let me change the SDK directory, though.
So, go to "Project Structure" menu (or "Other Settings/Default Project Structure"), and set the home path for Android SDK. here is a bit outdated tutorial: the GUI has changed since v.0.1, but the substance is still completely relevant.
A week ago, v.0.4 preview has been released - maybe the menus have been shuffled a bit again, I don't know.
PS: note that NDK integration is still not official, but some workarounds have been accumulated here.
Related
NOTICE: I found other questions and answers about the same issue, but the answers are for older versions of Android Studio, and I want confirmation if it still can work for the latest version of Android Studio (2.2.3.0 which was released on December 6, 2016)
I'm new to the Android development and I selected the IDE to use wrongly and before thinking and knowing which IDE to use.
So after this mistake, I must use Android Studio now to use the GRADLE libraries as Eclipse doesn't officialy support them (because Eclipse is now discontinued).
The Android Studio is 1.63 GB (including the Android SDK), while Android Studio is 417 MB (without the Android SDK).
I have Android SDK Tools R25.2.3 ( latest ) already downloaded, so I don't want to download the whole Studio + The Android SDK again.
Is it possible to download the Android Studio without the SDK, then link the SDK to the Studio manually?
I'd be very thankful if someone could help!
Yes it is possible , Studio and SDK can been seen as separate components and they can be linked by providing SDK path in the studio IDE or you can configure you SDK path thorough the setting menu shown at the start screen of android studio.
You can download the standalone IDE through Official Android Studio site.
Note : http://tools.android.com/ has dropped the support of providing separate SDK and IDE components but still IDE can be downloaded individually from Android Official Download Link
Steps to configure after download
1.) Download and Extract the IDE
2.) Find studio or studio64 exe and run the appropriate one in your OS
3.) When you start your studio , it will probably ask for SDK location through a prompt screen and provide the location and hit next and next , eventually it will show you a little process for update window and show you finish screen (Must follow the note below)
3.a) If there was no prompt screen shown then you can configure the SDK path using the setting option on the Splash screen of android studio
3.b) It's possible that when you open an old studio project and SDKis still not configured because every project has it's own setting so again you can see the link in error/log window as configure SDK and just click the link and provide path
Note : Disable internet before configuring you studio otherwise it will look for Updates
Helpful points to possible issue
For old project , replace the old dependencies with the one you have in project structure link for Visual representation of steps
Replace the gradle version with the one supported by your new studio and do the same if any other tool is not found.
Definitely. The Android Studio IDE prompts you to specify the path containing the Android SDK tools, if it doesn't detect the SDK automatically.
I found posts that indicate that the sdk used by Android Studio can also be used by Eclipse ADT.
Can Eclipse use the same sdk that Android Studio (intelliJ)?
Is it possible for the sdk used originally by Eclipse ADT to be used by Android Studio?
I already have an up to date SDK which I use with Eclipse ADT.
I recently downloaded Android Studio.
Was wondering if I could use the pre-existing SDK that I used with Eclipse ADT,instead of downloading it all over again for Android Studio.
Yes absolutely you can. The SDK is independent of the IDE you are using.
I will explain you the steps to do it.
1) You need have the SDK so that it can be commonly used by both the IDEs.
Let say you want to put your new SDK at the following location: /Users/Name/sdk.
You can also use the SDK that came up with Eclipse or download a new one if you want (it's not necessary at all).
2) Android Studio can automatically find the location of your SDK, but you need to manually point it out if it can not.
You may also need to specify the SDK location for your project. In your Android studio project, go to File -> Project Structure -> Android SDK, and point to your new sdk folder location.
Remember to restart Android studio after this.
For example your SDK folder is at the D:\Android\SDK
Link SDK in your Android Studio, go to File->Project Structure->Android SDK and point the D:\Android\SDK in Android SDK location.
Restart Android Studio
I have Win7-64 laptop, installed JDK, Eclise is working. I am failing to install the Android SDK. I downloaded 'adt-bundle-windows-x86_64-20131030' from developer.android. When I used SDK Manager, i could select required installation components and it shows as complete. However, I dont see anything in the 'All Programs'. I also dont see any plugin (that I was supposed to see) in the Eclipse as well. So I gather I am missing some step. Can anyone help. Pl see![][1]
Your downloaded sdk files may not shown in All Programs as they are not executable nor meaningless to be clickable.
Sometimes many folks got a problem to point out exact SDK path, so more than one SDK binaries are downloaded. I think your eclipse cannot find sdk path properly.
To find out where the SDK path is, it displays in SDK Manager.
Then, you can set the path in Eclipse Eclipse->Window->Preferences-> select Android from left hand menu. Check SDK Location has same path; see screenshot.
FYI, as downloaded files are just a bunch of binaries used only for Android development, you can copy the whole android-sdk folder to other place.
I personally recommend to change the directory to C:\Android or C:\User\<me>\Documents\Android-sdk as default directory is in C:\Users\<me>\AppData\Local hidden folder.
The ADT bundle includes an Eclipse executable fully configured with the Android SDK tools. It does not add a plugin to an existing Eclipse install. To launch ADT/Eclipse goto . Search for eclipse.exe within that directory. This is the executable you need to launch.
On my Mac, the Eclipse executable is in /Applications/adt-bundle-mac-x86_64/eclipse/Eclipse.app/Contents/MacOS/eclipse. Just a guess, but on Windows, the path will probably look something like adt-bundle-windows-x86/eclipse/Eclipse.app/Contents/windows/eclipse.exe
I would personally suggest to use Android Studio 2.1 for easy install of plugins as whenever there is an update to any platform tools or build tools they are readily available and the dependency injection is far better with the build tools such as Gradle which are bundled with the Android Studio .
Android Studio
Android adt is plugin to use Android SDK in Eclipse IDE. You have SDK you have Eclipse now you need to install adt plugin in eclipse to use your SDK.
You can refer Android developers for plugin installation
https://stuff.mit.edu/afs/sipb/project/android/docs/sdk/installing/installing-adt.html#Download
For "I dont see anything in the 'All Programs' I also dont see any plugin" part you will not see any extra program installed in your system as adt is extension of eclipse. When you will have adt in place you should be able to see Android option in eclipse preferences. You should also be see Android APplication option while creating new project.
I downloaded Android Studio, fixed the JDK Environmental Variable, but when I try to create a New Project, I get an error that says
Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later.
I opened up android.bat in the SDK but it said I was already running version 22.
Anyone else getting this?
It just happened because you already have your SDK setted up for Android Developers Bundle with eclipse. Simply open your SDK manager in the ADT Bundle and update you Android SDK Tools from 21.1 to 22 and you are good to go.
Worked for me.
First of all, on Windows and Mac, the individual tools and other SDK packages are saved with the Android Studio application directory.
Windows: \Users\<user>\AppData\Local\Android\android-studio\sdk\
Mac: /Applications/Android\ Studio.app/sdk/
Make sure your android-sdk-path is correct and the sdk tool version is 22 or later.
Then open the Configure--> Project Defaults --> Project Structure, set your project sdk is Android SDK.
enjoy.
As for me, I make next:
Start Eclipse -> start SDK -> install selected packages
Eclipse -> Help -> check for updates -> update all
Android Studio -> configure -> Project Defaults -> Project structure -> Press plus -> Android SDK -> put path to the same sdk that you use in eclipse (run SDK and in top panel you can see this path).
Apply
I did all of the above and still got the ....missing templates blah blah. What worked for me was to go to Configure>Project Defaults>Project Structure>Project and select Android SDK, then Configure>Project Defaults>Project Structure>SDKs map the Android SDK home path to the sdk folder in the ADT bundle (for me it was C:\Users\home\Toolbox\adt-bundle-windows-x86\sdk).
I then selected Android 4.1.2 clicked apply and it worked.
I then went back to the Configure>Project Defaults>Project Structure>SDKs and then selected Android 4.2.2 and now that worked too (strange though as when I selected Android 4.2.2 first time the Apply button was grayed out)
I ran into this problem because I wanted to update from an old version. In doing this, I downloaded the latest version from the Project Tools Site, then unzipped and copied over my existing Android Studio install which did have the sdk folder inside.
Going back and looking at it, I see quite plainly that there was a note that I previously ignored:
NOTE: These .zip files do not contain an embedded SDK install. If you have an existing install of Studio which contains an embedded SDK, if you upgrade by installing one of these zips, make sure you copy over the SDK as well.
For OS X users, this means going to your old version of Android Studio (if you haven't copied over it yet) and right-clicking and selecting Show Package Contents, then copying the sdk folder that's inside, then putting that into the new version of Android Studio.
If, like me, you already copied over the old version, then you'll need to redownload the old version first which does contain the SDK.
They released a new sdk today. You need to update to it.
I was still hitting this, and figured it was due to something I had misconfigured (which turned out to be the case). The error message is a little confusing, too, because I believe that they are referring to is the version of the ADT tools, not the SDK. For example, the version of Android 4.3 (which is about the latest) is 18.
As of the latest source for Android Studio (which you can clone from here: https://android.googlesource.com/platform/tools/adt/idea), that message is generated from NewProjectWizard.java at about line 75 if TemplateManager.templatesAreValid() is false. And it checks that by looking for the existence of the file [rootTemplatesFolder]/gradle/wrapper/gradlew .
It gets the [rootTemplatesFolder] from the SDK(s) you specified in the "Project Structure" settings for default projects. In my case, I had several specified - both the new ones pointing to the sdk directory that's (thankfully) part of the Android Studio, and a few old ones I had somewhere else. I should not have included the old ones at all, but I'm a newb to this and the GUI let me do it. The NewProjectWizard was checking the tools area of that one first, which did not have that file, since the tools version with it was older than version 22.
I had to use dtruss to watch the system calls of Android Studio to see where it was looking for that file, at which point I could tell what my silly problem was.
I have a few more notes on this, including a screenshot of my particular misconfiguration, at http://www.nowherenearithaca.com/2013/08/solved-android-studio-and-your-android.html
Note: It seems you have to restart Android Studio for the "New Project Settings" here to take effect.
for ubuntu:
Open sdk manager from Android Studio or configuration.
make sure you download or update the latest release SDK and build tools.
Set the sdk location as (your android folder/sdk)
It'll download and install sdk
just Update sdk with sdk manager
it worked for me
Ubuntu Linux 10.04//Eclipse 3.5.2
I'm new to Eclipse and Android. Eclipse is up and running simple Jave apps OK. I moved on to downloading the Android SDK starter package, which seemed to go OK. Ran the SDK manager and downladed Platforms 7,8 & 9. Installed the ADT package in Eclipse.
I've tried to load the SDK path into the Eclipse Preferences, but it won't retain the path. After restart, Elipse says it can't find SDK package. Also,one message said that the (revision?) number of the ADT couldn't be found.
I've reinstalled Eclipse a couple of times, and then gone through the SDK & ADT download procedures a couple of times and am stuck. Any suggestions will be appreciated.
Hertfordkc
Stupid question caused by not thoroughly reading the Android Developers Guide and the tutorials before trying to start a project. Don't know why I didn't get a message about a missing XML file.