全部博文(137)
分类: LINUX
2010-10-27 01:25:33
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.