Android StudioでVolleyを使ってみる
Volley.jarの作成
$cd ~/Development $git clone https://android.googlesource.com/platform/$frameworks/volley $cd volley
ターゲットを確認
$android list target Available Android targets: ---------- id: 1 or "android-19" Name: Android 4.4.2 Type: Platform API level: 19 Revision: 3 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in Tag/ABIs : no ABIs. ---------- id: 2 or "android-20" Name: Android 4.4W Type: Platform API level: 20 Revision: 1 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in, AndroidWearRound, AndroidWearSquare, AndroidWearRound, AndroidWearSquare Tag/ABIs : android-wear/armeabi-v7a, android-wear/x86
今回は4.4.2のid:1を指定
$android update project -p . -t 1
最後にvolley.jar作成
$ant jar zsh: permission denied: ant
antが入ってないみたい
$brew update $brew install ant
改めて
$ant jar Buildfile: /Users/koya/dev/volley/build.xml ... ... BUILD SUCCESSFUL Total time: 3 seconds
これで./bin/volley.jarができた