Chinaunix首页 | 论坛 | 博客
  • 博客访问: 501734
  • 博文数量: 137
  • 博客积分: 3874
  • 博客等级: 中校
  • 技术积分: 1475
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-05 10:50
文章分类

全部博文(137)

文章存档

2011年(37)

2010年(100)

分类: LINUX

2010-10-27 01:25:33

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 ("") 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: ""

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.


阅读(1074) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~