怎么编译Android ASE

如何编译Android ASE
实际上,编译Android ASE很简单.你所需要的工具并不太多.
  那下面我以Ubuntu9.10(说起Ubuntu 9.10,真是一把心酸血泪史. ATI显卡驱动,捣鼓了半天还是没安装成功,但是你可以看这里)为例来简单说明一下.
  1. 准备工具开发工具--Eclipse.我用的Eclipse的版本比较新,是3.5,Build id: 20090920-1017名字是GALILREO.这里要说的是GALIREO的一个问题:按钮失效.可以简单写一个脚本eclipse_galilreo来解决这个Issue:
#!/bin/bash
export GDK_NATIVE_WINDOWS=true
~/Downloads/eclipse_G/eclipse
当然第二行的路径要写适合的eclipse路径拉.
然后Terminal输入:
$chmod a+x eclipse_galilreo
运行这个eclipse_galilreo脚本就okay了.
2.Android Script Environment的source code当然要下载拉.
Terminal输入:
$wget http://android-scripting.googlecode.com/files/ase092209.hg
或者:
$sudo apt-get install hg
$hg clone https://android-scripting.googlecode.com/hg/ android-scripting
download完成以后,还要下载Android SDK,运行SDK Setup.重点是通过http连接,而不是https.
在Settings里面可以设置.在Misc中选择:Force https://... sources to be fetched using http://...即可.单击Apply.okay,再Install Accept.
至于Android Source code的下载步骤是这样的:
To clone one of these trees, install git, and run:
    git clone git://android.git.kernel.org/ + project path

To clone the entire platform, install repo, and run:
    mkdir mydroid
    cd mydroid
    repo init -u git://android.git.kernel.org/platform/manifest.git
    repo sync
所以要先下载repo这个脚本.
3.解压这些SDK.把Android-Scripting 放入mydroid目录下.
4.execute the fix_android_sdk.py script as follows:
$cd /YourPath/mydroid/android-scripting/tools
$fix_android_sdk.py /path/to/mydroid /path/to/android-sdk
实际上这步就是copy android script source code 到 SDK, 这样Eclipse能够浏览到.
5.导入ASE到Eclipse,这里要主要的是:
Change the project build path to specify the TTS lib path to
android-scripting/android/AndroidScriptingEnvironment/lib/TTSxxx.jar.
这样就完成了.开始编译吧.