Recently I have installed Android Studio 3.0.1 and SDK on my windows 10 computer. But I am encountered with the following problems to start my Project.
When I create my first application the following error message was displayed
Error: Failed to find target with hash string 'android-26' in: C:\Users\username\AppData\Local\Android\Sdk Install missing platform(s) and sync project
I tried to download and install the missing Platform online but after finishing the download and try to install the platform, nothing is changed, rather the download starts again and SDK manager is still empty. Even though the error message says failed to find the path 'android-26', it is already created in the ‘platform’ folder of SDK path with all necessary files.
Another Problem is the SDK manager is empty, the content that is going to be installed appears only when it is connected with Internet and it disappears as soon as I go offline.
What is the problem? I have been searching everywhere for answer but with no success. If there is a way I would prefer to download all the necessary files and then install them offline because every time I try to install them online either the speed is very slow or the download interrupts.
you can try this ways :
1-check your sdk path.i think your sdk path is invalid
2- clear your sdk and download sdk from this link
https://dl2.soft98.ir/mobile/Android.SDK.Release.25.2.5.Win.rar?1519592698 and change your sdk path from android studio. its worked for me
Related
I just updated my Android Studio to version 2.2 and now I want to update a few sdk tools and trying to launch standalone sdk manager but it is not being opened and no error message is being displayed when I click on it.
Also, I tried to look in finder for Android SDK Manager .exe its not there What is the reason of it. Anyone facing this issue? I also reinstalled android studio and tried to launch sdk manager after restarting studio but it is not working.
Here is my finder screenshot.
Kindly help. I am stuck in this.
Thanks in advance.
I have also faced the same problem few days back and I end up with the solution that to use android SDK manager first we need to make sure that java jdk must be install in our system.
I am using ubuntu so i m about to give solution for the same
go to Terminal
copy paste the following line
javac -version
now it will end up with something like this as you see in the following image
choose appropriate package as i choose openjdk-8-jdk-headless
and type in terminal as
sudo apt install openjdk-8-jdk-headless
now it will take 2-3 mins and thereafter your Luanch Standalone SDK Manager button will work
and for Windows users you need to set Path for your java jdk then your Launch Standalone SDK Manager button will work
This is what i did to solve the problem:
went to https://dl.google.com/android/android-sdk_r24.0.2-windows.zip and downloaded that sdk tools.
Extracted the file in one of the location of my choice.
Copied the SDK Manager.exe from the extracted file.
Went to the location where the original SDK Manager.exe was and replaced it with the one downloaded.
Went back to android studio and started SDK Manager, boom! SDK Manager launched perfectly. :)
NOTE: I replace all the file that included in downloaded file and leave the other remaining file of the SDK folder as it is:)
You can see I have SDK tools installed and the SDK platform installed.
I have no clue why I am getting the error below in the CLI?
I have already created the app, I following http://cordova.apache.org/docs/en/3.1.0/guide_cli_index.md.html#The%20Command-line%20Interface getting to the platform add step I am failing miserably. Maybe I don't have the android command ? If so how do I do that?
Is it because of administrator access(if so, how do I fix that), is it a path issue(again how do I fix it)?
I installed ant then I went into C:\Users\visum_000\.cordova\lib inside there I deleted the android folder, then tried the command again, here is what happened.
You see it downloaded but still gives the error.
It actually looks like you have installed the Android SDK properly on your box.
Have you adjusted your Path settings and added the Android tools path accordingly ?
All project worked fine
But suddenly
This problem occurs all project...
I can not run all project.
This occurs after the recent update for the Eclipse Plugin(s) for Android. In Eclipse, use Window -> Android SDK Manager, and update your Android SDK Installation. The error message will disappear when you restart eclipse.
Or, if you're like me and have both Eclipse 3.7.x and Eclipse 4.2.x installed, you will need to update the Android SDK Installation on both of them if you want both of them to work (despite the fact that I used the same installation directory).
Updating the Android SDK install is something of a beast in and of itself; I was having some issues installing API 17, but I found that clearing the SDK Manager cache alleviated those problems.
I still had the issue following aanno's answer, so what I had to do after his step was to switch my workspace (File->Switch Workspace) to another folder, apply that and then immediately go back and re-select my original workspace location. Once I did that and eclipse returned, my workspace was back up and running.
The error appeared after an upgrade earlier today. There was no obvious difficulty with the upgrade.
After many partial measures, it took the following to get the error to go away:
deleting both the Tools and current Android API installation, using the Android SDK Manager (followed by reboot);
deleting the original directory in my filesystem containing the Android SDK files;
downloading a fresh version of the Android SDK files (http://developer.android.com/sdk/index.html) and specifying its location in filesystem to Eclipse in Preferences=>Android;
installing fresh versions of both the Tools and current Android API, using the Android SDK Manager (followed by reboot)
I wonder if there is something buggy in the regular updating protocol. If updates go wrong again, I will try this full uninstall and reinstall of the SDK files and ADT Plugin from the outset.
For the record:
Mac OS 10.8.2 on 11-inch MacBook Air, Late 2010
Eclipse Version: Juno Service Release 1
Build id: 20121004-1855
Android tools: 21.0.0.v201210310015-519525
Even reinstalling the Android Plugins for Eclipse didn't made this error go away for me.
For the record (aka what I've tried)
I've looked for a file called "find_java" in my SDK Folder but couldn't find any (OS X here). Solutions suggested by other answers modifying this file was not an option.
I've also uninstalled Eclipse Plugins (using Eclipse Juno) via About eclipse > Installation Details. Also I've tried to remove possible remaining files for this I removed these files/folders:
/path_to_eclipse/features/com.android.* (found 4 folders in total e.g. com.android.ide.eclipse.adt_16.0.1.v201112150204-238534)
/path_to_eclipse/plugins/com.android.(found 4 *.jar e.g. com.android.ide.eclipse.ddms_16.0.1.v201112150204-238534)
I then reinstalled the plugins from inside Eclipse via Help > Install New Software following the usual process.
Note: Starting the Android SDK Manager from within Eclipse I got informed my software is up to date!
Solution (?)
With installed Eclipse Plugins I downloaded the SDK from dev.android.com, unzipped to a nice location (near the beach of you ask me ^^) and referenced it from within Eclipse: Eclipse > Settings > Android > SDK Location.
It seems the dex.jar error moved away after this (consisstent even after restarting Eclipse).
However currently my open projects are Unable to resolve target 'android-XX' (X generic version number).
Once again I had a look in the Android SDK Manager and yup - now it's listing a lot of plugins as uninstalled so currently I'm re-installing the API for various Android level.
Will keep this post updated but it seems that downloading and manual referencing the SDK did the trick.
I want install android on my computer but using the sdk it fails to download the packages due to my speed i think. I have extensively googled for several days but could not find any result i found a page which showed a way using the abyss server to install but lost it due to a powercut and could not find it again.
If any one could share a link or a tutorial of installing android sdk and using it with eclipse would be great help.
I think you should try following Step in Process of making Android Development Environment .
I hope you have already Eclipse .if you don't have then get it from here and Latest Eclipse is Version 3.7.Eclipse for Java
Step 2: As you have problem of internet speed try to Download Zip File of Latest ADT tool from this. Android ADT Plugin
Use this ADT Zip describe in this SO -->SO link ADT install
after done with add zip in Eclipse you need internet connection.
STEP 3: Now for Android SDK you can download this android-sdk_r17-windows.zip which have small size from this Developer Site -->Android SDK
when you put this Zip in your computer and unzip it and Download one of Android SDK Platform from this Site -->SDK Platform Offiine.
STEp 4: Now when you get one of SDK Platform you need to put that in this for Example in my PC .I have following path .
E:\Android_development\android-sdk\platforms\put here your SDK Platform Folder.
your path of android-sdk may different .
STEP 5: don't forgot give Path of your Android-SDK to here in Eclipse.For give path go here in Eclipse
Window-->Preferences-->Android now in SDK Location Box
Provide Location of Android SDK Some thing like this
E:\Android_development\android-sdk
Go to http://dl-ssl.google.com/android/repository/repository.xml, and select the sdk platform version you want to install and then copy paste the appropriate platform android-x_rxx-windows/linux/macosx.zip you want to setup,
http://dl-ssl.google.com/android/repository/android-x_rxx.zip
After you download it, go to your
SDK-Installation-Path (C:\Program Files (x86)\Android\android-sdk\platforms in Windows). Create a Folder named android x and extract all zip contents into the android x folder.
Close the SDK Manager and reopen it. You will find the SDK platform for the android x will be shown as installed.
This tutorial explains it in detail,
How to install android sdk platform offline
I have setup for Android development with 1.5 SDK on Mac O.S X - Eclipse 3.5. I want to upgrade the SDK, so as i followed to choose Window->Android SDK and AVD Manager from Eclipse. But it throws error as follows:
XML verification failed for
https://dl-ssl.google.com/android/repository/repository.xml.
Error: cvc-elt.1: Cannot find the declaration of element 'sdk:sdk- repository'. Failed to fetch URL
I tried "http" instead of https, but still getting the same error. I don't know why such crap error comes. If i see Android website,
https://developer.android.com/sdk/index.html
its confusing.
Could someone guide me easily to update Android SDK to 2.x or later without uninstalling my current setup environment.
If you are using a very old version of the tools, you will need to download a newer starter package from http://developer.android.com/sdk/index.html
The reason is that the schema of the repository XML file changed when we released rev 5, but only tools in revision 4 or higher can adapt to schema changes.
By the way once you download the new starter package you can replace the tools folder from your previous installation with the new one. That way you don't have to change PATH env var or any other setup you have.
Error:
XML verification failed for https://dlssl.google.com/android/repository/repository.xml.
Error: java.lang.NullPointerException
Solution:
This error occurs on Mac because, Java 6 is not installed by default on osX 10.5.6 or before and you need Java 6 to run Android AVD and SDK Manager.
The easiest way to overcome this error is by installing the latest version of Java.
You can find this blog useful.
If you are getting the error XML verification failed for https://dl-ssl.google.com/android/repository/repository.xml. Error: cvc-elt.1: Cannot find the declaration of element 'sdk:sdk- repository'. Failed to fetch URL
in mac os, then download android sdk (Mac OS X (intel) android-sdk_r15-macosx.zip) from http://developer.android.com/sdk/index.html. Unzip this package and copy this unzip package on your mac root directory (Macintosh HD) and rename this unzip package as android-sdk. Now open android-sdk->tools->android. The sdk update will start automatically. You dont need to install java 6. It is automatically installed in your mac os.