[TIP]
can build the Android SDK for window on linux.
here is the web link:
http://tools.android.com/build
[command]
sudo apt-get install mingw32 tofrodos
source build/envsetup.sh
lunch sdk-eng
make win_sdk
[Issue 1]
need unix2dos
[solution]
sudo apt-get install tofrodos
ln -s /usr/bin/todos /usr/bin/unix2dos
ln -s /usr/bin/fromdos /usr/bin/dos2unix
[reference]
http://www.linuxidc.com/Linux/2010-11/29557.htm
[Issue 2]
host C: sqlite3 <= external/sqlite/dist/shell.c
external/sqlite/dist/shell.c:42:32: error: readline/readline.h: No such file or directory
external/sqlite/dist/shell.c:43:31: error: readline/history.h: No such file or directory
[solution]
sudo apt-get remove libreadline5-dev
can build the Android SDK for window on linux.
here is the web link:
http://tools.android.com/build
[command]
sudo apt-get install mingw32 tofrodos
source build/envsetup.sh
lunch sdk-eng
make win_sdk
[Issue 1]
need unix2dos
[solution]
sudo apt-get install tofrodos
ln -s /usr/bin/todos /usr/bin/unix2dos
ln -s /usr/bin/fromdos /usr/bin/dos2unix
[reference]
http://www.linuxidc.com/Linux/2010-11/29557.htm
[Issue 2]
host C: sqlite3 <= external/sqlite/dist/shell.c
external/sqlite/dist/shell.c:42:32: error: readline/readline.h: No such file or directory
external/sqlite/dist/shell.c:43:31: error: readline/history.h: No such file or directory
[solution]
sudo apt-get remove libreadline5-dev
本文介绍如何在Linux环境下为Windows平台构建Android SDK。通过安装必要的软件包并设置环境变量,可以成功编译Android SDK。文章还解决了遇到的一些常见问题,如转换文件格式及依赖库缺失等。
2736

被折叠的 条评论
为什么被折叠?



