Missing all SDK Platforms - android

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.

Related

Android Studio select SDK error on trying to run project

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.

Rendering Problems Android Studio 0.8.2

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

Which folder needs to be specified when selecting the location of the Android development SDK?

When setting up your Mobile Support Preferences in LiveCode for developing to an Android , which folder within the Android folder archive needs to be selected? Whenever I select a folder it seems to come up with an error saying:
The chosen folder is not a valid Android SDK.
Please ensure you have it installed correctly,
and enabled support for Android 2.2 (Froyo).
I am running on Windows 7.
A few weeks ago there was an update to the Android SDK that had a new arrangement of files, which stopped LiveCode from being able to recognize the SDK. There are a couple of files that you can move across from the older SDK to work around the problem, but I believe the issue was fixed in LiveCode 6.0.2. So, try using that version of LiveCode.
Got it resolved. My SDK was KitKat and live code is expecting Froyo. I checked Android 2.2 from SDK Manager and installed it. Then gave the path
F:\Android DK\adt-bundle-windows-x86_64-20140702\sdk
worked like a charm.
i found the answer here:
http://forums.livecode.com/viewtopic.php?f=53&t=20966
I had to download zipaling.exe and copy it to the tools folder inside my android-sdk folder.
I tried all other solutions on the internet, and this is all that worked for me.

Eclipse ADT version 21 plugin , fail to compile working workspace "no targets available” when everything correctly setup

I have problem with compiling workspace fully functional after Update to ADT 2.1 , after some eclipse restarts and cannot find any mention about it anywhere. I am running Mac OS X Mountain Lion and I also tried to use Eclipse installation coming bundled with latest ADT 21. Problem is still repeating. It seems to me as bug.
In Android preferences of Eclipse there is message “No targets available” even thou folder is correctly setup to correct SDK.
So it toke mi almost two hours to find working solution for this bug. I reinstalled everything tried to go back to ADT 20 and then accidentally upgraded tools and again was forced to update ADT to 21 that is failing for me…
Solution is simply to have two correct Android SDK folders and you have to point eclipse to other folder, apply, it loads SDK correctly than you can go back to SDK you actually use and everything works. Well till next restart and yo have to do it again . Thank you Android developers , each new big update , new big bug on osx :)
There is another option (from https://stackoverflow.com/a/14045656/4100), if you did disable the android plugin from running at startup, this will happen. Enabling it should fix the bug.

Eclipse wont recognize Android support library revision 9

I recently downloaded all the latest updates for my eclipse/Android plugins (before the upgrades everything worked fine). I got everything to work except when i try to create a new project I get a message that I need Android support library revision 8. I click Install/Upgrade and It proceeds to download and install the library. When it finishes the tiny download/install window disappears but the window which informs me that i need Android support library revision 8 remains open and i cant click finish to create new project. I tried closing the window and eclipse and trying it again but it always leads me to the window which states I need the Android support library revision 8. I didnt move eclipse to any other location and I am wondering what is wrong.
I had a problem before with an ! in my eclipse path and eclipse wouldnt work because of exit error 13. I posted a question about it before. My answer explains what has happened and the easy fix.
I am wondering what is wrong now. Do i need to manually link the support library?
Im really frustrated because its taking me forever to set this up.
Update:
I tried restarting eclipse and reinstalling the library multiple times.
I upgraded the android sdk tools and sdk platform-tools before i installed the support libraries.
Like these similar issue i'd for 2 days ago. Whenever, i'm trying to create a new project its showing me like below
For, this i've downloaded that support library using Install/Upgrade and in my path E:/Android/Android-Sdk/extras/android/compaitability I've changed the name of compaitability as support and after just restarted my Eclipse. Its working fine.
Hope these helps you.
Try updating android sdk tools and sdk platform-tools and restart eclipse? ADT has dependencies on these.

Categories

Resources