安裝檔案:
- VirtualBox
- AndroidVM
vbox86p : 手機版, 預設解析度 480×800
vbox86t : Tablet 版,預設解析度 1024×600
vbox86tp : Tablet 版,但有電話的功能,預設解析度 1024×600
gapps : 代表包含 Google 相關服務 (有 Google Play)
houdini: 代表包含 Arm emulation (AndroidVM 是跑在 x86 上,所以反過來需要去模擬 Arm)
安裝步驟可參考:Android Development with AndroVM
那在 Titanium Studio 中要如何直接部署它並且在上面 Debug 呢?
首先,連結 androidVM
要修改 Titanium SDK 的 source code:
要修改 Titanium SDK 的 source code:
~/Library/Application Support/Titanium/mobilesdk/osx/2.1.4.GA/android/builder.py
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
def run_adb(self, *args): | |
command = [self.sdk.get_adb()] | |
#command.extend(self.device_args) | |
command.extend(args) | |
return run.run(command) |
如果要查看 AndroidVM 中 Titanium 的 log,可以在 Console 環境下執行:
adb logcat | grep -G '\(TiAPI\)\|\(TiApp\)'