I just downloaded Android SDK ("android-sdk_r05-linux_86.tgz") and installed it on Linux. Running it from the command-line brougth up the "Android SDK and AVD Manager" immediately. But after clicking the "Available Packages" and clicking the arrow for the first repository, I got the following error message on the command-line:
Exception in thread "Loading Source" java.lang.NoClassDefFoundError: javax/net/ssl/SSLKeyException
What happened? Very disappointed with the SDK so far. It says "JDK (version 5 or 6 required)". I have JRE 1.5, which is version 5:
java version "1.5.0_09"
Anyone know what's the deal? And how do I fix it?
I didn't solve the problem yet, but I found a way to download the packages manually. You can put the repository URL ("https://dl-ssl.google.com/android/repository/repository.xml") into your web browser. This would get you an XML file with the content spec. Reading the XML, you can find the files to download. For example, Android 2.1 platform has three files: "android-2.1_r01-linux.zip", "android-2.1_r01-macosx.zip", "android-2.1_r01-windows.zip". Then you can download the file by adding the file name to the repository URL prefix: "https://dl-ssl.google.com/android/repository/"
I'm downloading the Android 2.1 Platform for Linux now. Not sure what I'd do with it yet. But I'll keep you posted.
The solution is to install a newer JRE version. I installed version 1.6.0_20 and now the AVD Manager works.
I haven't got a chance to play with the manual download yet. But maybe that's unnecessary, unless you want to do manual installs in the future (where you don't have Internet connection).
Ok, to manually install the package, just unzip it into the Android SDK "platforms" directory.
to automate installation use a script like the following. Correct your platforms_dir and zip_storage_dir before run:
if [ ! -d $zip_storage_dir ]; then mkdir $zip_storage_dir; fi
for i in $files_list;
sorry there was a copy-paste error. here's the script attached.
Thanks, Sergey. That script will come in real handy. Very tempted to modify it so that it will download https://dl-ssl.google.com/android/repository/repository.xml and generate a list of files automatically.
Did your message disappear? Read the Forums FAQ.
TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
Title: Need JRE 6 to Install JDK 6
Title: Android SDK Release 6 Causes NullPointerException on Mac OS X
Spam Control | * indicates required field
Messages, files, and images copyright by respective owners.
58 Users Online
Copyright © 1996 - 2020. All Rights Reserved.