Created
March 1, 2012 22:19
-
-
Save daneko/1953642 to your computer and use it in GitHub Desktop.
CloudCore CentOS5.7 Android開発環境構築(CUI)メモ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://developer.android.com/sdk/index.html | |
http://d.hatena.ne.jp/isher/20100928/1285616799 | |
http://d.hatena.ne.jp/unagi_brandnew/20110908/1315420036 | |
# wget sdkのパス | |
# とりあえず /opt以下に展開 | |
# パスを通す | |
# android update sdk -u | |
# -u は guiなしで動作させるオプション | |
# android -h update sdk の出力は以下 | |
Usage: | |
android [global options] update sdk [action options] | |
Global options: | |
-h --help : Help on a specific command. | |
-v --verbose : Verbose mode, shows errors, warnings and all messages. | |
-s --silent : Silent mode, shows errors only. | |
Action "update sdk": | |
Updates the SDK by suggesting new platforms to install if available. | |
Options: | |
--proxy-port: HTTP/HTTPS proxy port (overrides settings if defined) | |
--proxy-host: HTTP/HTTPS proxy host (overrides settings if defined) | |
-s --no-https : Uses HTTP instead of HTTPS (the default) for downloads. | |
-f --force : Forces replacement of a package or its parts, even if | |
something has been modified. | |
-u --no-ui : Updates from command-line (does not display the GUI) | |
-o --obsolete : Installs obsolete packages. | |
-t --filter : A filter that limits the update to the specified types of | |
packages in the form of a comma-separated list of | |
[platform, system-image, tool, platform-tool, doc, sample, | |
extra, source]. This also accepts the identifiers returned | |
by 'list sdk --extended'. | |
-n --dry-mode : Simulates the update but does not download or install | |
anything. | |
# DLが始まるので放置 | |
# MotorolaとかExtendsな方々が認証聞いてくるけどEnter押せば逃げられる | |
# 多分 -t でfilter掛けるのが正解? | |
# antのバージョンが古いと動かないらしいので先に入れる | |
# wget http://ftp.riken.jp/net/apache//ant/binaries/apache-ant-1.8.2-bin.tar.gz | |
# tar zxvf apache-ant-1.8.2-bin.tar.gz | |
# 回答ディレクトリを適当に配置 (ここでは/opt/apache-ant とした) | |
# export ANT_HOME=/opt/apache-ant & PATHに$ANT_HOME/bin追加 | |
# HelloWorldを作ってみる | |
android create project \ [/tmp] | |
% -n HelloAnt \ | |
% -k jp.omokageru.dnk.helloant \ | |
% -a HelloAnt \ | |
% -t 27 \ | |
% -p ./HelloAnt | |
# ビルドしてみる | |
# ant clean debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment