Cynosure.X International LLC

: :

Add Comment | Related Links | TrackBack
Related Content

Missing javax/net/ssl/SSLKeyException

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
at com.android.sdklib.internal.repository.RepoSource.load(RepoSource.java:228)
at com.android.sdkuilib.internal.repository.RepoSourcesAdapter$TreeContentProvider$1.run(RepoSourcesAdapter.java:194)
at com.android.sdkuilib.internal.tasks.ProgressTask$1.run(ProgressTask.java:135)

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"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
Java HotSpot(TM) Client VM (build 1.5.0_09-b01, mixed mode)

Anyone know what's the deal? And how do I fix it?

Chieh Cheng
Mon, 17 May 2010 23:15:15 +0000

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.

Chieh Cheng
Mon, 17 May 2010 23:27:52 +0000

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).

Chieh Cheng
Mon, 17 May 2010 23:39:57 +0000

Ok, to manually install the package, just unzip it into the Android SDK "platforms" directory.

Chieh Cheng
Mon, 17 May 2010 23:55:12 +0000

to automate installation use a script like the following. Correct your platforms_dir and zip_storage_dir before run:
===
epo_url="https://dl-ssl.google.com/android/repository"
platforms_dir="/home/serega/projects/android/android-sdk-linux_x86/platforms"
zip_storage_dir="/home/serega/projects/android/android-sdk-linux_x86/zip"

if [ ! -d $zip_storage_dir ]; then mkdir $zip_storage_dir; fi

files_list="android-1.1_r1-linux.zip
android-1.5_r04-linux.zip
android-1.6_r03-linux.zip
android-2.0_r01-linux.zip
android-2.0.1_r01-linux.zip
android-2.1_r02-linux.zip
android-2.2_r02-linux.zip
samples-2.1_r01-linux.zip
samples-2.2_r01-linux.zip
samples-2.3_r01-linux.zip
android-2.3.1_r02-linux.zip
android-2.3.3_r01-linux.zip
samples-2.3.3_r01-linux.zip
android-3.0_r01-linux.zip
platform-tools_r03-linux.zip
tools_r10-linux.zip
samples-3.0_r01-linux.zip
docs-3.0_r01-linux.zip"

for i in $files_list;
do
cd $zip_storage_dir
if [ ! -e $i ]; then
wget $repo_url/$i;
mv $i $platforms_dir;
cd $platforms_dir
unzip $i;
mv $i $zip_storage_dir
fi
done
===

Sergey Romanovsky
Wed, 02 Mar 2011 19:48:58 +0000

sorry there was a copy-paste error. here's the script attached.

Attached File: get-sdk.sh (1 KB)

Sergey Romanovsky
Wed, 02 Mar 2011 19:51:01 +0000

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.

Chieh Cheng
Thu, 03 Mar 2011 00:34:53 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

Title: Need JRE 6 to Install JDK 6
Weblog: Cynosure.X International
Excerpt: I just tried to install JDK 6 on Linux and got the following error message:Could not locate a suitable Java runtime.Please ensure that you have Java 6 or newer installed on your systemand accessible in your PATH or by setting JAVA_HOMEI thought that was hilarious. JDK has the Java Runtime Environmen . . .
Tracked: Mon, 17 May 2010 23:40:55 +0000

Title: Android SDK Release 6 Causes NullPointerException on Mac OS X
Weblog: Cynosure.X International
Excerpt: I just upgraded to Android SDK Release 6. But I can't get any packages from the repositories, because of the following error message:XML verification failed for https://dl-ssl.google.com/android/repository/repository.xml.Error: java.lang.NullPointerExceptionI don't know what's causing this error or . . .
Tracked: Mon, 24 May 2010 05:54:14 +0000

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 3 + 1?
Click button only once, please!

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

50 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.