I have recently installed Android SDK on my computer running Windows 7 x64.
I then installed the Eclipse ADT plugin. I am running Eclipse Juno JEE.
When I attempt to run the SDK Manager through Eclipse, I receive the following errors:
Nothing I have tried has allowed me to download/install/update Android SDK and its packages.
I have tried https and forcing http
I have tried running calling program as administrator.
I have added Eclipse, SDK Manager to Firewall exceptions.
I have turned off my antivirus.
I have turned off my firewall.
I have tried various combinations of the above.
I can navigate my browser to both URLs (using Firefox). That should negate "Failed to read..." options 1 and 2. Option 3 seems to be the likely candidate as the XML files do not, in fact, include the <'xsd:schema'> tag. However, I don't know how, if, or where I might be able to point SDK Manager to a local, modified copy of these XML files, or if that would even solve anything.
Any help would be greatly appreciated.
Note: I have installed Android SDK/ Eclipse ADT Plugin on the same machine in the past. This is a fresh install after a recent reimage.
I am not sure if this answer's your question exactly to the point but yet I hope this helps you.
As u wrote it looks like you have downloaded eclipse from its website and android sdk separately from Android website. Why don't you download the Android SDK ADT package with pre-eclipse setup.
That will make your job way lot easier.
The file name would be something like this:
adt-bundle-windows-x86_64-20130729.zip
Related
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...
I'm getting an error when trying to debug my AIR app on Android, "Device appears to be offline". It used to work. I have AIR installed. I'm not sure what changed. I think maybe AIR was updated and that changed something but I'm guessing.
I've attached an image.
I've restarted the device a few times. I'm using Flash Builder 4.7. I have AIR 3.6.0.597 installed. USB Debugging is enabled. It's also connected as a Media device (MTP) which I may have accidentally turned on (but I'm not sure and it doesn't seem there's a way to turn this off).
I also recently updated to Jelly Bean 4.2.2 and now Flash Builder shows the same thing.
Adobe AIR Version: Not installed
State: Offline
OS: Windows 8.
Device: Nexus 7.
IDE: Flash Builder 4.6.
AIR: 3.4.
As mention above by 1.21 gigawatts pointed out a link that goes to a thread with this suggestion:
Same boat, from
\android-sdk\platform-tools copy theses
files : aapt.exe, adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll and dx.jar
(under lib rep) and paste into \lib\android\bin
To check, tape in cmd $ adb.exe version, you should have 1.0.31
instead of 1.0.26 Voilà!
The fresh updated sdk can be found here: http://developer.android.com/sdk/index.html#download
Going to see if the sdk update helps at all. Will report back "shortly".
[UPDATE]
Works for me! Thanks for posting that link 1.21 gigawatts. Yep, the problem is the new RSA key needed for the device to communicate with your computer.
I copied files listed above into the the flex air sdk. You need to confirm communication with your computer on your Nexus 7. There is a little popup prompt asking if you want to allow communication with the computer. After confirming refresh the device list; the device will show up correctly and you can get back to life as normal.
To those what would downvote the original question just because all the information was not supplied I have following to say. I found what I needed without every little detail included in the question. Questions do not need to be perfect and simple "cookie crumbs" are useful. sigh I wonder how much useful information is lost because of this behavior.
So here's how I got debugging to work for the following.
I'm using Mac OSX 10.8.2, Nexus 7, Flash Builder 4.7 and AIR: 3.6.
Download the latest Android SDK here: http://developer.android.com/sdk/index.html
Unzip it and copy aapt, adb and dx.jar from the [android-sdk]\platform-tools\ directory (dx.jar is in the \platform-tools\lib directory).
Paste these files in the [FLEX_SDK_AIR_3.6]\lib\android\bin directory.
Restart Flash Builder
I think the dx.jar is necessary when creating the release build.
There's another issue that may be related, Error SDK component at air/android/device/runtime.apk is out of date. Still trying to figure this one out.
If you're not able to find aapt after downloading the sdk from the link given, you need to go to Terminal and from the "tools" folder type:
./android update sdk
Then check build-tools
Also, for me it still didnt work until I updated Adobe AIR SDK to latest (using rsync not regular copy), and finally copy android-sdk-mac_x86/platforms/android-xx/android.jar to [air-sdk-version]/lib/android/lib/android-res.jar
I'm having a problem in the Android SDK Manager in which it doesn't show that I have any packages available to install:
When I first installed the SDK, the only line I saw there was the Android SDK Tools. I was able to add the Platform-Tools and Android 4.2 package my copying and pasting from the Android ADT bundle that I downloaded separately.
The log is showing no issues:
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Done loading packages.
And I can see available packages when I open up the XML the package URL returns.
Things I've tried:
1. Messing with the proxy in Tools > Options. I've tried both 127.0.0.1 and blank.
2. Opening the SDK Manager from Eclipse and directly (regular and as Administrator)
3. Uninstalling and re-installing the Android SDK. Downloading the latest versions of everything.
My system:
Windows 7 x64
Eclipse 4.2.1 Juno
SDK Manager 21.1
ADT 21.1
Any ideas? I suppose I could download the files by pulling URLs directly from the XML, but that isn't ideal.
Edit:
Since I can pull the repository-7.xml file using a browser, this doesn't look like a Firewall/AV/Network setup issue. It's a matter of the SDK Manager not loading up the package information it pulls back through the XML.
I got the same problem. For me the solution was putting a check on the "Force https://... sources to be fetched using http://..." box. It's on Android SDK Manager's preferences screen, below the proxy settings.
Also if this doesn't solve your problem, instead of downloading SDK again, I suggest you to download the Adt Bundle
So I was finally able to see all of the available packages. I accidentally hit the SDK Manager icon in Eclipse instead of the AVD Manager I meant to press:
And all of the available packages showed up.
Also, now when I open the SDK Manager using any of the other methods (directly from SDK directory or using the Window > Android SDK Manager menu option in Eclipse) all of those missing packages are now showing up.
i had the same problem.
and nothing works for me, nor clearing cache, nor restart eclipse, nor running sdk manager from eclipse, nor forcing https (from sdk manager options)
but every thing works fine when i used proxy!!
sdk manager-> tools-> options -> http proxy server
I know that I'm kind of late to the party, But I wanted to share my experience with this issue.
It turned out that the underlying Logger module used was the SL4J Android edition. Because I had overridden the version (using an external JAR file) that the SDK Manager used, a lot of things went wrong when it tried to load the Logger class. I discovered this when i tried to run
android-sdk\tools\android.bat update sdk --no-ui
which showed me an exception thrown by the ClassLoader of the logger module. Removing every trace I had of the SL4J modules in my %JAVA_HOME%\jre\lib\ext folder solved ALL of my problems.
I know this is old, but just wanted to add for posterity. I had this same problem and it turns out I had previously ran the SDK Manager as root (Ubuntu Linux). My user account didn't have permissions to overwrite the files and update the list. Once I corrected the permissions, it ran fine.
On Windows, if you are running the SDK Manager directly from ~Android\android-sdk directory, just right click and Run as administrator. That did the trick for me anyway.
Are you opening the Adroid SDK when you unzipped the folder downloaded?. Becouse i had a problem like you, and the solution was that i am taking a wrong folder path.
What i did:
Downloaded again the sdk and put it in C:/ (Another Path)
Check in this path if i get the same result.
install the new tools and android version from the new path.
becouse i see that u have your folder in C:/ProgramFile/Android......... and i have in this path only that i have installed.
Open Android SDKManager->Android SDK->SDK Update Site
Click on Launch Standalone Android SDK Manager you will see the packages.
On SDK manager go to tools -> options and select force https checkbox; now you should see all
I upgraded to Gingerbreak 2.3 SDK today and started receiving this error when I try to run DDMS:
Failed to get adb version: Cannot run program "adb": CreateProcess error=2, The system cannot find the file specified.
How can I fix this? Running Windows 7, 64bit.
It seems that adb.exe is now in the SDK's platform-tools folder. I had to add the platform-tools folder to my PATH in my Environment Variables.
I tried to upgrade my perfectly working Android dev system yesterday with the new 2.3 SDK and associated ADT. After the upgrade, I couldn't get Eclipse to compile my project correctly, nor could I access the Android SDK and AVD Manager from Eclipse. Eclipse seems to have lost track of where the Android SDK was installed. I would give it the name of the folder, but then it could come back saying it couldn't find .../tools/adb.exe. Yes I know adb.exe moved. But notice that the error was looking for it in the old spot. It's like I didn't have the new ADT, but I checked and rechecked and I did. I'm thinking that the new ADT didn't install correctly for some reason, and/or I wasn't checking it's version properly.
When I searched around for a solution, everyone pointed out that adb moved and that the classpath needed to change. But there isn't really a relevant classpath in this situation. There is just a path to the Android SDK that needs to be set in Eclipse. I even tried the trick were I copied adb.exe back to the tools folder. At that point, Eclipse could find the Android SDK, but then some other problem that crept up so I gave up on that hole.
Anyway, I ended up blowing away my eclipse and Android SDK folders and starting over. Now it works fine. I'm sure there's a better solution, but I was sick of messing with it.
I'm now 2 for 4 on using Android SDK and AVD Manager to do an upgrade.
Hope this helps someone.
Update: Upon further review, I seem to have my stackoverflow topics mixed up since the OP never mentioned Eclipse.
I had the same problem and it works like this . First run adb.exe , after open ddms.bat
I'm using Windows 7 and installed the 64 bit version of Eclipse 3.5.2. I then installed the Android ADT plugin, but when I try to configure it in the Windows > Preferences dialog, the Android Plugin doesn't show up in the left pane. Instead I see DDMS. This prevents me from specifying the location of the Android SDK (unless there is another way) to give me the appropriate templates and such.
Someone posted a fix to this that includes setting the permissions of Eclipse, but that didn't work for me. I tried installing the Android Plugin from both online installation (thru the URL install) and the offline Archive method.
If you're running Windows Vista or 7, make sure you right-click Eclipse and RUN AS ADMINISTRATOR. I literally spent six hours figuring this out, and this was what fixed it.
Dear people from the future:
I had roughly the same problem in linux, except that i didn't see anything at all but vanilla eclipse after installing. by combining both previous answers i got it to work:
start eclipse with sudo eclipse -clean, install the plugins and restart eclipse. the plugins showed up including the welcome screen that's supposed to be there.
after that it should work when running as regular user as well.
works for both the android sdk and the gwt sdk. (and probably other eclipse plugins)
Remove the plugin, then restart as follows:
eclipse -clean
Now try reinstalling the ADT from the online installation
For users having similar problem and not luck with other solutions:
I have windows XP but had same problem. I realized that I had JDK5/bin folder in my PATH environment variable (though my JDK_HOME was pointing to JDK6), as soon as I modified the PATH to replace bin of JDK5 with JDK6, the Android buttons on eclipse (after restart with -clean) along with Android option in Preferences & New Project showed up. (Weird eh!)
Also, consider to install the bundle android installation having eclipse with pre-configured Android SDK if a new eclipse installation doesn't matter to you
http://developer.android.com/sdk/installing/bundle.html
The above answers do not confront the heart of the problem. There is a feature in Windows 7 that prevents downloaded files from direct access of local files. All of the state is perfectly maintained in the Eclipse workspace instance. The problem is easily resolved by doing the following:
Find the "Eclipse" executable
Right-click on it.
Click "Properties".
Select the "General" tab.
Look for -> Security: "This file came from another computer and might be blocked..."
Click Unblock.
This is a much better solution than uninstalling and reinstalling the ADT or Eclipse which can be a pain.