Saturday, January 17, 2009

Build Android SDK

Docs droiddoc: out/target/common/docs/dx
javadoc: error - In doclet class DroidDoc, method start has thrown an
exception java.lang.reflect.InvocationTargetException
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for
sun.util.resources.OpenListResourceBundle not found


If you install sun-java6-jdk and 'make sdk' you will meet above error.
You should uninstall sun-java6-jdk, sun-java6-jre, and sun-java6-bin and install sun-java5-jdk.

sudo apt-get purge sun-java6-jdk
sudo apt-get purge sun-java6-jre
sudo apt-get purge sun-java6-jbin

sudo apt-get install sun-java5-jdk
sudo apt-get install sun-java5-jre
sudo apt-get install sun-java5-jbin

cd ~/bin/myandroid/
make sdk
(need 670MB and 16 minutes)

[Check if success]
cd ~/bin/mydroid/out/host/YOUR_OS/sdk/
YOUR_OS=your operating system e.g. linux-x86.
If success, sdk folder should be in this folder.

Reference:
http://www.evan129.com/2008/11/02/android-platform-study-tips-eng/

No comments:

Post a Comment

You can leave any question here and I will make a response to you ASAP. :D