1. 程式人生 > >Android 原始碼編譯 make sdk ADT

Android 原始碼編譯 make sdk ADT

下載eclipcse,如果不使用jee版本eclipse,在編譯ADT時會出現如下錯誤

6,配置環境變數

vim ~/.bashrc
在最後新增:
ECLIPSE_HOME=/usr/lib/eclipse
export ECLIPSE_HOME;

export PATH=${PATH}:${ECLIPSE_HOME}

如果沒有新增會出現以下錯誤:

Installation Error: Eclipse plugin org.eclipse.equinox.launcher...jar not detected. Found ''. Aborting.

8,在使用者目錄下建立一個adt資料夾
7,development/tools/eclipse/scripts/build_server.sh ~/adt
如果沒有下載完全版的eclipse就會出現以下錯誤:

BUILD FAILED
/usr/lib/eclipse/plugins/org.eclipse.pde.build_3.6.0.v20100603/scripts/build.xml:35: The following error occurred while executing this line:
/usr/lib/eclipse/plugins/org.eclipse.pde.build_3.6.0.v20100603/scripts/build.xml:91: The following error occurred while executing this line:
/home/luther.gliethttp/sdk/eclipse/buildConfig/customTargets.xml:14: The following error occurred while executing this line:
/home/luther.gliethttp/sdk/eclipse/buildConfig/allElements.xml:27: The following error occurred while executing this line:
/usr/lib/eclipse/plugins/org.eclipse.pde.build_3.6.0.v20100603/scripts/genericTargets.xml:107: A cycle was detected when generating the classpath com.android.ide.eclipse.adt_0.9.8.v201009041615, org.eclipse.jdt_3.6.0.v201006080911, org.eclipse.ui.intro_3.4.0.v20100427, org.eclipse.help.base_3.5.0.v201006080911, org.eclipse.equinox.http.jetty_2.0.0.v20100503, org.mortbay.jetty.util_6.1.23.v201004211559, org.slf4j.api_1.5.11.v20100519-1910, ch.qos.logback.classic_0.9.19.v20100519-1505, ch.qos.logback.core_0.9.19.v20100419-1216, org.slf4j.api_1.5.11.v20100519-1910.

BUILD FAILED
/usr/lib/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35x_20100114/scripts/build.xml:35: The following error occurred while executing this line:
/usr/lib/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35x_20100114/scripts/build.xml:91: The following error occurred while executing this line:
/home/luther.gliethttp/sdk/eclipse/buildConfig/customTargets.xml:14: The following error occurred while executing this line:
/home/luther.gliethttp/sdk/eclipse/buildConfig/allElements.xml:27: The following error occurred while executing this line:
/usr/lib/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35x_20100114/scripts/genericTargets.xml:106: Bundle com.android.ide.eclipse.adt_0.0.0 failed to resolve.:
Missing required plug-in org.eclipse.gef_0.0.0.
Missing required plug-in org.eclipse.wst.sse.core_0.0.0.
Missing required plug-in org.eclipse.wst.sse.ui_0.0.0.
Missing required plug-in org.eclipse.wst.xml.core_0.0.0.
Missing required plug-in org.eclipse.wst.xml.ui_0.0.0.