I have installed Android SDK from 2.1 to 4.0 and i have worked with Android Projects. But now all the projects throwing exception like sdk not found... While checking SDK wizard, nothing SDK is installed. Am i deleted any files?
After Installed SDK:
But now Except tools no sdk is present
Restart your IDE then go to preferences and make search for SDk folder (i think that must be in Eclipse folder) set SDk path it will work ..
I think it happens with you because you do not specify you SDK path in preferences -> Android
hope this explanation works for you..
Related
I'm trying to setup IntelliJ IDEA to develop android applications and I faced an issue with android sdk. As far as I know, I need to download the sdk separately. But I all I managed to find was Android command line tools which is obviously not something I need. So my question how can I get android sdk for IntelliJ IDEA?
You can install whichever android SDK or API from Intellij. I have the 2018.1 version but I hope this works in earlier versions too. You can find the options to install the SDKs here:
Same problem I have with IDEA 2017.1.1. I installed tools_r25.2.3-windows.zip and managed to install them.
I've done:
unzipped it to C:\Android\android_sdk\
renamed "tools" folder to "tools-sdk"
executed
C:\Android\android_sdk\tools_inst\bin>sdkmanager --update
prepared file my_file with lines:
build-tools;24.0.0
platforms;android-24
tools
emulator
Executed:
C:\Android\android_sdk\tools_inst\bin>sdkmanager --package_file=my_file
Then gave IntelliJ IDEA folder C:\Android\android_sdk as Android SDK Home Folder.
Then IDEA asks to install something additional. The test android project compiles and runs on emulation (AVD Manager works). I had to install 22 Platform and Build Tools though because android-24 virtual device asked for a password.
The only problem is I still have no SDK Manager with GUI interface.
First of all make sure you'be setup JDK properly. If not, you can download it from here.
Now go to Android Developer official site and download Android Studio.
If you are already done with above mentioned points the few point you might be missing.
When asked to choose the JDK (not SDK) you need to choose the Java JDK which you've installed earlier. Should be under C:\Program Files\Java\jdk{version}
Choose a New platform ( if there's not one selected ) , the SDK platform is the android platform at C:\Program Files\Android\android-sdk-windows.
Please let me know if it didn't help.
Reference:
https://www.jetbrains.com/help/idea/2017.1/getting-started-with-android-development.html
I had the same issue. I tried downloading sdk via android eclipse setup process. Eclipse automatically downloads the sdk. This sdk has a gui sdkmanager and can be used in idea as well. Here is the link to download eclipse.
(Android Studio installed on my computer.)
As i see users missed a point while installing android SDK.
You should show the Android SDK at AppData folder to IntellijIdea.
C:\Users\Your_Username\AppData\Local\Android\SDK_Folder.
References: https://www.jetbrains.com/help/idea/prerequisites-for-android-development.html
https://www.jetbrains.com/help/img/idea/2017.2/AndroidSDKManager.png
You can download the android SDK from this link here. I hope it should be helpful that link.
I already have Android SDK latest edition and Eclipse installed. But I want to try Android Studio as well.
I have seen this and this post, but those solutions change the instance of SDK Android Studio (once downloaded and installed) uses. What I want is not to download another SDK when I already have it installed on my machine.
The problem is that the download package given here includes SDK as well.
So can I download Android Studio IDE without the SDK, and then give the path to the SDK I already have during installation?
All the answers suggest to download it with an SDK and then delete it.
You can however download the AStudio w/o the SDK from Android Tools Project Site.
The latest build (2.0 Preview 4) can be downloaded here.
Note: The newest version also requires the SDK to be outside the application folder!
Well now Google offers a "No Android SDK" version of Android Studio in its official Download portal:
It is an old question but it might help someone like me who is looking for an answer. This instructions are for windows 64 bit systems.
Download zip of Android studio without SDK using links given in other answers (e.g. I downloaded android-studio-ide-141.2112779-windows.zip - version 1.3.0.9)
Unzip the archive and run bin/studio64.exe
When it asks for the path to install the SDK, browse your existing SDK location instead of the default path given.
If it detects valid installation of SDK, it will display a message that only missing or old component will be downloaded.
I hope it helps.
You can find it here (http://developer.android.com/sdk/index.html#Other) in the "Other Download Options" section. There is many different version of Android SDK and Android Studio, including Android Studio without bundled SDK tools.
You can download it with SDK, then change it to yours ( here is explained ) and then delete it
Download Android Studio as is.
Go to it's location and delete the SDK (optional).
At your project open "project structure" and set SDK locations to your Eclipse's SDK.
or just copy your Eclispse sdk to android studio SDK.
When i create a new android application project in eclipse the gen - file is empty.
I found out I have to install android sdk build-tools but in the tools folder there's just the Android SDK tools and the android platform tools.
It's revision 22
You need to start the SDK Manager and download the build-tools from there.
You'll need to update the ADT (Android Development Tools) in Eclipse to the newest version first (see this post for more info on how to do this). What also worked for me was to get the Android API and all the extras updated before I could update the build-tools.
May be you can use ADT bundle (http://developer.android.com/sdk/index.html) and avoid the manual installing of SDK and eclipse plugins. All you need to do is to download it, unzip it and start using eclipse to create your apps.
I had the same concern.
You may be looking in the wrong sdk folder.
I had two on my machine. One from before I started using the ADT Bundle. when you open Eclipse sometimes it opens the SDK manager for the wrong SDK. Open it manually from the bundle you downloaded.
Hope this helps.
I hope that this will help you and others. I had downloaded the "build tools" myself and placed in "Android home". I even used some of the tools several times but could not link them to other tools listed under sdkmanager. After much searching, I found that;
deleting the old tools that I installed manually, and
re-installing the same package version of the tools using the sdkmanager
helped me. After this the tools showed up under the list of packages in the sdkmanager. I had not noticed that my "build tools" were not listed on sdkmanager before as I had installed them myself and barely used the manager.
If you don't want to go through this (reinstall) hassle, I noticed that the only difference between the auto install and manual is that sdkmanager kept the package version directory structure for the "build tools". For example, if you download version 4.0.5, then it will be in
<ANDROID-HOME>/build-tools/4.0.5/
whereas I had done away with this to keep the file path shorter. After this, all should be fine.
Note: this is like learning that white space matters in some languages and not others. You just have to follow the thing's rules. Also question is a duplicate of this one.
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
I just installed Eclipse and Android SDK in Mac OS X.
I imported the project to Eclipse and i get the Unknown command 'crunch' error while running the project.
How should I solve this issue.
Please help me
I just update
"Android SDK Platform-Tool" to 8 Rev and "Android Asset Packaging Tool"
from android sdk manager,
and then it works.
Have a try!
After updating to ADT r14, go to Window -> SDK Manager (in Eclipse)
Check on 'repository', uncheck "installed"
Wait for packages to load, then select all support packages, accept all and install them
Restart Eclipse
Run your apps on new ADT r14, without 'crunch' errors
Worked for me :)
Updating Android SDK Tools to r14 and Android SDK Platform-tools to r8 also solved this problem for me.
I had to check 'Installed' in the SDK Manager in order for the updates to be listed (even though I had the previous versions already installed). Checking only the New/Updates box meant they wouldn't show up in the list.
Go to Window -> Andriod SDK Manager (in Eclipse)
Check on 'repository', uncheck "installed"
Wait for packages to load, then select all support packages, accept
all and install them
Restart Eclipse
I had the same issue.
To fix it :
- Uninstall the current sdk tools (Android SDK Tools and Android SDK Platform-tools) in the Android SDK Manager
- Reinstall them at their last version (r14).
I encountered this kind of problem also, when updating SDK,
The solution was to re-enter the SDK folder path to the Eclipse.
(For some reason, the new SDK was instaslltion was in a diffrent folder from the original one)
For me, what worked was a combination of what Androgeek and tinyau said.
Summing up. I needed to update both my Android SDK Tool and Support Tools and restart eclipse.