IMPOSSIBLE to configure your SDK Via Configure | Project Default | Project Structure | SDKs - android

Hello Installing Android Studio seems to be a nightmare !
I've downloaded this build : android-studio-ide-135.1538390-windows
At the first execution it says that JVM is missing
So I've installed : jdk-8u25-windows-i586.exe
Next run Now I get a message saying that I need an environnement variable to catch the JDK
OK I set it also
Finaly the JDK can be found.... but the nightmare is not finish
I launch Android Studio and try to open a new Project
Now it does not found the SDK which was suposed to come with the IDE
OK back to Download I get : installer_r23.0.2-windows.exe (Very explicit name !!) and I install it
I try again : still no SDK
I keep calm I continue to follow the rules
Your Android SDK is Missing, out of date or is missing Templates
You can configure your SDK Via Configure | Project Default | Project Structure | SDKs
So I try to set
C:\Program Files (x86)\Android\android-sdk
But the IDE refuse to keep that setting
Now I give-up I need some help
Maybe let the SDK installed on Program_Files is not a good idea ?
Thanks for any help

Simple Open the Android Studio.
First click on File menu then Project Structure then you will find an option to set the SDK location. Now instead of writing path simply browse then you are done.
It should solve your problem.

I filed a bug report about that earlier today.
Just start creating or importing a project from the welcome dialog. You should be prompted to supply the SDK path at that point, and (so far) that seems to stick.

Related

Your Android SDK is missing , out of date,or is missing templates

I just installed android Studio on my computer (Ubuntu) and I'm getting this problem every time I try to create a new project, problem this that does not allow me to actually start an android studio project. I have seen some solutions on internet which says I should go to Configure->Project Defaults->Project Structure and make some changes there, in the SDKs field, what happens is that the only opition that shows up to me in projecture structure is the field SDK location, I Don't know what else I could do, so I'd like to know if someone can help me, thank you.
I just had the same problem as you. The guys at Google are terrible at providing up-to-date documentation. First of all, Android Studio v0.8.14 does NOT come with SDK, even though on the website it says it does. You have to download the stand-alone SDK tools separately from this link. Then just unzip the file to some directory, like ~/Development. Open Android Studio, Configure -> Project Defaults -> Project Structure. There provide the path to SDK (~/Development). It should find SDK and work finally.
Let me know if it works for you.
Your Android SDK is missing, out of date, or is missing templates. You can configure your SDK by following:
Configure | Project Defaults | Project Structure | SDKs

Eclipse not running my android app

When I want to run an app to emulator , eclipse give me this error :
[2014-04-09 11:02:38 - ErsalNazar] Failed to create a Launch config for project 'ErsalNazar': Could not write file: E:\workspace.metadata.plugins\org.eclipse.debug.core.launches.
too show this dialog box sometimes
I am sorry for bad Language .
Create a new workspace and copy your project in this new workspace
This can happen when:
You have multiple copies of the Android SDK installed on your
machine. You're updating the available images and devices for one
SDK, and trying to debug or run your app in another. If using
Eclipse, take a look at your "Preferences | Android | SDK Location".
Make sure it's the path you expect. If not, change the path to point
to where you think the Android SDK is installed.
You don't have an Android device setup in your emulator. For solve this issue check http://techtraveller.blogspot.in/2009/07/android-fixed-unknown-virtual-device.html

Location of the Android SDK has not been set up in the preferences in 64 bit Windows

"Location of the Android SDK has not been set up in the preferences in 64 bit Windows" - I know this problem has been addressed before several times, but rather than comment on an old question I decided to make a new one because still it's not solved.
Recently I changed my system from 32 to 64 and currently I cant Run my ADT. When am using 32 its works fine. I installed 64 bit ADT (Build: v21.1.0-569685) and updated everything. Now My ADT contains 6.41 GB.
Now when am trying to run Eclipse I got a popup like
When I am searching this I got a solution like Window -> Preference -> Android -> SDK Location Set the path of the Android SDK in your computer there.
But when I am trying for this OK button is not enabled.
When I am trying to Access AVD again a popup came
When I am trying to create a new Project, another Popup is shown like
When I am trying to update - Mo Updates Found message is showing
Can anybody offer some advice on this problem?
How to Update your ADT to Latest Version?
In Eclipse go to Help
Install New Software ---> Add
inside Add Repository write the Name: ADT (as you want)
and Location: https://dl-ssl.google.com/android/eclipse/
after loading some time you will get Developer Tools and NDK Plugins
check both if you want to use NDK in the future or check Developer Tool only
click Next
Finish
Now My Problem Solved :-)
The issue may arise if you are running IntelliJ Idea or any other IDE that uses / shares the same Android SDK. After running IntelliJ Idea, and thereafter running Eclipse, the Eclipse IDE fails to get the path of the SDK. In Eclipse go to Window > Preferences > Android and change the back slashes to forward slashes. For e.g, D:\eclipse\android-sdk to D:/eclipse/android-sdk and press Apply.
I have faced the same issue
Solution: go to the below URl https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip Extract the folder and now go to the preferences and select the SDK folder from the Extracted Folder, and apply it . the problem will be resolved
Go to preferences, find "Android" on the sidebar and then there will be a box for SDK location, point it to the SDK. Read over http://developer.android.com/sdk/installing.html if you're still stuck.
OR
Go To Eclipse >> Windows >> Preferences and click on the left tab Android and you will see the below image with some text above as
“This Android SDK requires Android Developer Toolkit version 14.0.0 or above. Current version is 11.0.0.v201105251008-128486. Please update ADT to the latest version.”
And Update..
Go to Eclipse >> Help >> Check for Updates.
Please don’t forget to close Eclipse after the Updates complete.
How to update your ADT to the latest version:
In Eclipse go to Help ---> Install New Software ---> Add ---> Add Repository
Write the Name: ADT (as you want) and Location: https://dl-ssl.google.com/android/eclipse/
After loading some time, you will get Developer Tools and NDK Plugins
Check both if you want to use NDK in the future, or check Developer Tool only
Click Next
Finish
It means the "Android SDK" folder is empty, that's why it does not want to add it to Eclipse. Here are the contents of the Android SDK folder:
Windows: https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
Mac: https://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
Download and extract the contents to a new folder and name it android-sdk and link that directory to Eclipse and you are all set!

Android-studio Selected directory is not valid home for Android SDK

I installed android studio but while selecting android SDK I am getting following error. I tried solution which is on this post but no luck. How can I solve this?
I had this problem, select SDK folder (NOT SDK->sources or SDK-platforms)
I resolved with the instructions here,
http://www.blog.teamguru.in/2018/04/06/selected-directory-is-not-a-valid-home-for-sdk/
Just close current error window and let run the android studio
Open the SDK manager as shown below
Click on Edit SDK location as shown below
Simply press next button if there is correct location for SDK you want to install there
Let it be downloaded
Install platform and SDK tools and
Enjoy
Try restarting the application. Close all related studio processes, then right click "run as administrator".
You should be fine after this.
I got the same issue. You must enable the Android Support Plugin
Configuration > Plugin > Android Support Plugin. Check it.
Close error window
Go to gradle tab
select "Gradle settings", wrench icon
Search for SDK setup
Select appropriate sdk for your device.
Next, two times
Wait for install
There is all..
None of the other answers work. After the installation, immediately close Android Studio, then start it as administrator. A message might popup asking for the sdk manager location. Ignore it (Close the popup). Go to Tools > SDK Manager and click on the edit button on the right of Android SDK Location. Then click Next, next and you're good to go. Android Studio will let you install the sdk manager.
I had the same problem but what I found is that it requires the parent folder of the following things AVD manager,SDK manager,tools,platform-tools,build-tools etc.So what you need is to find the parent directory of these things, which you might find with a name such as android-sdk or android-sdk-windows(in case you are using windows OS).Make sure the above said contents are in that folder and select it.I hope you will find this useful.
Download the SDK from http://developer.android.com/sdk/index.html
Start SDK manager and make everything up to date
Also, make sure you have set the language level to
7.0 Diamonds, ARM, Multi-catch, etc
I had this problem on Linux. Apparently you need write access to some place in that directory, so I just took ownership of the entire thing:
sudo chown -R thomas:thomas /opt/android-sdk
Could be that something similar is going on on Windows as well.
If like me, a MacOs user which has installed Android Studio on my Mac and if you've tried everything you can think of but was still unable to set the Android SDK directory in Android Studio, follow the next steps (I know the site where I got the bundle is a freeware site but the package is the right one):
1. Download adt-bundle-mac (Android Developer Tools) from [here][1].
2. Unzip the file and browse into the unzipped folder.
3. Copy only the sdk dir to /Users/username/Library/Android
4. Open Android Studio, the error about the SDK folder which is not set will pop up, set the path to the SDK to "/Users/username/Library/Android/sdk".
5. Now Android Studio will accept the path and you're good to go.
I wasted about 2 hours until I fixed it so I hope that by writing this answer I'll save you some 2 hours.
The sdk folder contains the platform-tools folder.
I copied this folder and named it platforms, then it worked for me.
Just delete(preferably permanently) all the android directories in whatever location they are present(e.g. C:\Program Files\Android, C:\users\respective user\respective android folders). Remove the installer as well(if possible). Make sure to save all your Android Studio files in some external storage (preferably).
The main thing is to get Android studio with SDK.
Now go to the android studio website and install android studio leaving all settings default. There you will also get to install the SDK and it's linking.
It will take some time to load and will load nearly 1.5 GB files.
This worked for my case.
In my case I wasn't giving him admin permission
Steps to follow:
Close Android Studio.
Restart Android Studio and Give the path of Empty Folder .
Install Sdk in that folder(Sdk will automatically install and will get configure automatically.)
With Android Studio 4.1.2 the easiest thing is to close the project (file / close project). That's how you get to the wizard that automatically sets up the SDK for you.
The default location that it suggests is /Users/stan/Library/Android/sdk (exactly the same that I was trying to set up manually but AS kept saying it's invalid)

Could not find folder 'tools' inside SDK

I am doing Android Development using Eclipse. I have downloaded all the required software, but I am having the same problem as discussed in "Unable to set up Android Target in Eclipse". Now I do not find the solution of the problem on that discussion so let me rewrite the problem again,
When I load Eclipse and create a new Android project, it keeps on waiting for the ADT to load. To figure out what is wrong I went to preferences and tried to put the location of the ADT I created in it but it keeps giving me this error when I put the address of ADT,
Could not find folder 'tools' inside SDK 'E:\Documents and
Settings\me\android-sdks'..
How can this issue be resolved?
I created the folder tools manually, now I am getting this error:
[2011-12-24 15:23:56 - DDMS] DDMS files not found: E:\Documents and Settings\me\android-sdks\platform-tools\adb.exe E:\Documents and Settings\me\android-sdks\tools\hprof-conv.exe E:\Documents and Settings\me\android-sdks\tools\traceview.bat
[2011-12-24 15:42:06 - DDMS] DDMS files not found: E:\Documents and Settings\me\.android\platform-tools\adb.exe E:\Documents and Settings\me\.android\tools\hprof-conv.exe E:\Documents and Settings\me\.android\tools\traceview.bat
If you install Eclipse properly then:
Start Eclipse
From the menu bar, select Window > Preferences > Android
For Android location, browse the folder in which you install Android SDKs.
In Android SDKs folder, rename the folder platforms-tools to tools.
Select the folder Android SDKs through Preferences dialog box.
If I get you correctly you have just downloaded Android sdk and want to configure it working with Eclipse. I think you miss one step from the installation of the sdk:
1) you download it
2) you extract it somewhere
3) then go to the specified directory and start AndroidManager (or was it just android??). There you specify you need platform-tools and the manager will configure that for you. This will also provide you with the 'adb' executable which is crucial for the Android developement.
After that you install ADT (which I think you already did) and from Eclipse preferences -> Android options you get a place to specify where your android-sdk is. If you specify it after you did the 'step 3' you should be good to go.
I am not 100% sure I got it correctly and what your state is, so please forgive me if my comment is irrelevant. If I am wrong I will be happy to help if you provide some more details.
Something I am completely sure is that you shouldn't need to create the folder 'tools' by yourself.
PS: The description I gave is for newer versions of android sdk, but if you are encountering a problem with older version I will recommend you to start from scratch with newer version. It shouldn't take you that long time.
This can also happen due to the bad unzipping process of SDK.It Happend to me.
Dont use inbuilt windows unzip process.
use WINRAR software for unzipping sdk
By default it looks for the SDK tools in "C:\Documents and Settings\user\android-sdks". Some times we install it at another location. So you just have to select the correct path and it will done.
I faced similar issue when the SDK tools installation was failed during the initial setup. To resolution is to download SDK tools from Android Developer Site
Expand "USE AN EXISTING IDE" section and download standalone SDK tools
Choose your destination as (%HOMEPATH%\android-sdks)
Now start Android-SDKs folder and run SDK manager
If you get the "Failed to find DDMS files..." do this:
Open eclipse
Open install new software
Click "Add..." -> type in (e.g.) "Android_over_HTTP" and in address put "http://dl-ssl.google.com/android/eclipse/".
Don't be alarmed that its not https, this helps to fetch stuff over http. This trick helped me to resolve the issue on MAC, I believe that this also should work on Windows / Linux
Hope this helps !
In my case i was using Ubuntu. Where the was two directories one was /android-sdks
and /android-sdk-linux. I used the second one it works for me :)
My solution was to remove the Eclipse ADT plugin via menu "Help > About Eclipse SDK > Installation Details". Eclipse will restart.
Next go to Menu "Help > Install New Software", then add the ADT plugin url "https://dl-ssl.google.com/android/eclipse" (or select the existing link from the dropdown).
This will re-install the latest ADT, including the DDMS files.
For me it was a simple case of specifying the path to the 'sdk' subfolder rather than the top level folder.
In my case I needed to input
/Users/Myusername/Documents/adt-bundle-mac-x86_64-20140321/sdk
instead of
/Users/Myusername/Documents/adt-bundle-mac-x86_64-20140321

Categories

Resources