I updated Android Studio to 0.8.2 and at first I had Gradle problems and Rendering Problems.
My Rendering Problem was that I didn't select a render target. After fixing this problem I got another Rendering problem.
Rendering Problems File C:\Users\User\AppData\Local\Android\android-studio2\sdk\platforms\android-19\data\layoutlib.jar doesnt exist (Details).
I've searched so much on the internet and I even downloaded the layoutlib.jar file but it didn't solve my problem. I really need help because I wanna concentrate on my work.
THANK YOU IN ADVANCE
Had the same problem. What worked for me is deleting the SDK Platform for the specific API (19 in this case) using Android SDK manager. If you open SDK manager and expand the different Platforms packages like Android 5.0.1(API 21) and so on, you'll see the respective SDK Platform underneath. Select the one you're having trouble with and delete it. Then reinstall it.
Try to update SDK.
Tools -> Android -> SDK Manager, when the manager is opened packages which have updates will be checked, you just click "Install packages".
Delete all items in andoid 21 and install again. Your problem will be solved. Thanks..
Just uninstall and reinstall
specific android APK
with android here it android-19
Tools -> Android -> SDK Manager
1.uncheck the specific android APK android check box the apply (wait if need to unistall)
recheck the same specific android APK android apk and then click on Apply
Related
I am using Android Studio 3.1 on Ubuntu 18.04 LTS. I'm currently working on a project with target API 28. I've downloaded the SDK with API level 28 during installation but sometimes when I try to run my project on my device, a popup dialogue prompts me to select the SDK. This does not happen every time but happens sometimes even if I've run the project before and made no change to the SDK path. I don't know what triggers this. I've seen similar questions on StackOverflow, but none of the solutions work for me. Here's what I have done so far:
Synced my project
Invalidated cache and restart
closed my project and opened it again
Uninstalled my SDK and downloaded it again
Switched back to an older version of SDK and then back again
But none of this works and the only workaround I found was to open another project that I downloaded from Github (with API 26), build it and then go back to my current project. This solves it temporarily. A few of my friends are working on the same project on different machines (Windows, Mac) and they have this problem, too.
Is this a bug with AS or is there a permanent solution?
File->Settings->Android SDk.
If already was there in your system set the path to that otherwise download the SDK from SDK tools by selecting specific name.
I've found this workaround. It is not perfect, but it works. Hope this this will be helpful for someone else.
Move your project folder to another location and then open it. It resolves the problem.
It shows that I've already installed the Android SDK but I can't find it.:<
Tried in terminal to see what's in the folder but find nothing, this location is empty. Why the app tell me that I've installed it? How can I solve this problem? Thank you!!
I would say that you reinstall Android Studio after checking the SDK Manager at first. The SDK Path may also be corrupted, so check that.
For me it was two issues, proxy settings although tested okay was not connecting to display the list of available SDKs. Also launching Android Studio using "Run as administrator" was also required.
I had exactly the same issue and I came across this post but then before implementing the suggested solutions, I decided to first restart my AndroidStudio, on restart it gave me the option to download SDK and after that, it worked perfectly well.
I have fixed it by downloading the Android SDK from IntelliJ rather than Android Studio.
Then restart Android Studio, It detects the installed version.
I'm trying to setup Android Studio on a new install of Mac OS X Yosemite. I downloaded the Android Studio Beta v0.8.14 from here: https://developer.android.com/sdk/installing/studio.html and upon launching it complained about not having an SDK (although the download page indicates it should include the SDK). I tried searching after installing for the SDK and can't find it (a few other posts indicate /Applications/Android Studio.app/sdk but that location doesn't exist). Where is the SDK installed and what is required to set it up?
Go to the SDK Manager and click Edit... next to the field for the location of the SDK. Then an "SDK Setup" window should display. There you can download the SDK.
Edit: This answer is deprecated as Android Studio seems to bundle everything since a while already.
Old answer
It seems the android-studio-bundle version is no longer available in the download page (instead there are only android-studio-ide). When you start Android Studio, it won't let you create a new projet until you configure the SDK location.
That means you have to download the SDK separately here, extract it somewhere, and configure it on Configure->Project Defaults->Project Structure. After that, the SDK Manager icon will be enabled and you can download the tools you want.
I had the same problem on Windows. After I re-installed it a few times, I found that the SDK was installed but hidden in C:\Users\<user name>\AppData\Local\Android\sdk.
Information for Windows
For some reason, which I have no time to investigate, Android seems to provide, currently, the IDE and the SDK separately, while in the Dev Webpage says the opposite.
This is the "complete" (false!) tool I have just downloaded: android-studio-ide-171.4443003-windows.exe (SDK is missing here, note the "ide" in the file name).
And this is the real complete tool I had downloaded few months ago, from the same place...: android-studio-bundle-162.3871768-windows.exe
Note that this last one has the "bundle" in the file name.
Please, download the bundle (IDE+SDK) from here:
https://dl.google.com/dl/android/studio/install/2.3.1.0/android-studio-bundle-162.3871768-windows.exe?hl=ko
I want to suppose (¿?) that similar link you can find for Linux or macOS just Googling for it.
Hope this helps!
It worked like this for me
Downloaded the Android Studio
Install Android Studio
Open Android Studio after installation.
You will get a dialog box to import settings if you already have Intellij installed on your machine. Say "Do not Import". Otherwise continue to next step.
It will ask you in the dialog box to pre-configure such as theme, path etc.
Just click next next...and then Finish. You will see the SDK tool will start downloading.
After installation is finished. You can find it in this path: C:\Users\<user name>\AppData\Local\Android\sdk
If you have ever installed Android Studio before and then removed it, it won't reinstall the SDK automatically (speculation: some Windows setting somewhere).
The solution is starting Android Studio and then
File -> Manage IDE Settings -> Restore Default Settings
This will wipe any custom settings you don't have at this point and trigger the SDK install
What Pablo wrote is misleading.
This is the "complete" (false!) tool I have just downloaded:
android-studio-ide-171.4443003-windows.exe (SDK is missing here, note
the "ide" in the file name).
Yes, it is IDE only, but after you install this IDE and first time run it, SDK will be downloaded automatically. So there is no need to download some outdated bundles. Just use default "green button" on https://developer.android.com/studio/index.html
I'm using Ubuntu, and had previously installed Android Studio. It was using too much space, so I deleted it. Now when I downloaded it and started ./studio.sh, it found my previous installation configuration directory and asked to import from there. I did, and then this problem occurred.
I put the directory .Android Studio 3.3 in the trash and restarted ./studio.sh, and it imported the SDK automatically for me. That was good, because I couldn't find it where it was supposed to be according to the dialog box. The 3.3 above is from the version of Android Studio I was installing.
in my case, my country is forbidden from google, and my PC's time zone was set by my counrty.
after I change my timezone to another country my problem solved and android studio download SDK and nkd easily
Re-install studio. If ANDROID_HOME is set to custom location then it will install sdk there else it will install SDK in C:\Users<user name>\AppData\Local\Android\sdk
Note:this is a temporary fix
If you have Eclipse then you can use that SDK for emulation.
Just run the sdk manager and emulate a version of android. Then while you are asking for emulating something ie while running code it will show your emulator as online and you can even use it.
Hope this helps you.
All the Best...
Couple of weeks ago I was working on android application. Everything was working fine. I have updated my eclipse with all the versions of android sdk. Starting from 1.* to 4.0.3. Today I opened my project to make some changes in that. And I found only 4.0.3 platform. And all my projects have hundreds of errors even my AVD is showing with red cross on it.
Can any one please tell me what is it? How come I miss my all installed sdk platforms?
Thanks in advance.
If you accidentally deleted the Android SDK folder it would stop all your code fro working. Try resetting up you path. In eclipse go to Window -> Preferences -> Android. Then browse to the SDK folder in the SDK location target textbox.
I am new to android development.
Have tried a couple times downloading the Android SDK and ADT plugin for Eclipse
In the Android SDK and AVD manager load fine but will not load any available packages.
Show:
- Android Repository
--"Some packages were found but are not compatible updates"
In the installed it shows 1.5 to 2.3 SDK platforms.
How to I get them available.
Appreciate help.
Thanks,
Alex
You can use following step:
1. window ->
2. customize perspective ->
3. command group availability tab ->
4. on the check box android SDK and AVD manager check it ->
5. click on ok
I had the same issue. Googled arround found nothing, and gues what:
It was the a checkbox in the main Android SDK and AVD Manager.
Click: available packages
Then select: Android Repository
Then you see the "some packages were found but are not compatible updates" message, which is why you created this question.
On the bottom of the form, you can see: 4 buttons and 1 checkbox.
Make sure you Uncheck: "Display updates only" when it is unchecked, you see the whole SDK list with Android 3.2 etc.
Steps for installing Development Environment.
Download Android SDK and Install it.
Install Android API’s for different android versions. The latest version is Android 2.3.
Download and Install Eclipse Install ADT plugin.
Create AVD (Android Virtual Device) for testing the applications.
I think you did not linked your Android SDK folder with Eclipse ADT plugin. Goto Window->Preference->Android browse your Android SDK if you have installed ADT plugin.
There are many resources available online. Here is a blog post where you find some good links to resources which help you in installing Android Development Environment.
Getting Started with Android
If you still didn't able to do it. Let me know your specific problem, where you got struck.
I think there is already an answer that probably works for most people (unchecking the box), but since that did not work for this install I have on Linux Mint, this did work:
(not my website)
http://blog.netscribe.us/blog/post/Step-by-Step-Guide-on-How-to-Install-Android-SDK-Offline-%28not-completely-offline%29.aspx
Basically, download the zip for the package you want and extract it to /platforms/.