[TIMOB-13515] Titanium Studio 3.1 can't use Android x86 emulator
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-23T16:31:24.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | Release 3.1.0, 2013 Sprint 08 |
Components | n/a |
Labels | android,, emulator, qe-closed-3.1.0, regression, triage, x86 |
Reporter | Daniel Sefton |
Assignee | Chris Barber |
Created | 2013-04-10T15:40:12.000+0000 |
Updated | 2013-04-30T18:02:57.000+0000 |
Description
Even Android [x86] api, Titanium studio launch Android[armebi-xx]
This is a big problem in my case. Please fix this problem.
Follow steps,
1. Create Project (android)
2. Right click on Project, Run as > Run configurations...
3. Click "New launch configuration." button (look left-top of dialog)
4. *choose Android 4.1.x [x86], (and choose project... etc)*
5. Click "Apply"
6. Click "Run"
Expected Result
1. Launch Android Emulator [x86]
2. Launch App
But
1. Launch Android Emulator [arm...]
2. Launch App
p.s.
If I use Ti Studio 3.0.2 on same workspace and same run configuration, It work properly.
Attachments
We should confirm if this is a Studio or CLI issue by finding the command we call and calling it from the command line to see if the same issue happens.
Output of the below command contains x86 target and below is excerpt of the output : "/usr/local/bin/titanium" "--no-colors" "--no-prompt" "--no-banner" "info" "-o" "json" "-t" "android" "4": { "id": "android-17", "name": "Android 4.2", "type": "Platform", "api-level": "17", "revision": "1", "skins": [ "HVGA", "QVGA", "WQVGA400", "WQVGA432", "WSVGA", "WVGA800", "WVGA854", "WXGA720", "WXGA800", "WXGA800-7in" ], "abis": [ "armeabi-v7a", "x86" ], "path": "/Users/pinnamuri/Work/android-sdk-macosx/platforms/android-17" }, ------------------------------------- However, the command launches android emulator arm instead of x86 - "/usr/local/bin/titanium" "--no-colors" "--no-prompt" "build" "--platform" "android" "--sdk" "3.1.0" "--log-level" "trace" "--target" "emulator" "--android-sdk" "/Users/pinnamuri/Work/android-sdk-macosx" "--avd-id" "4" "--avd-abi" "x86" "--avd-skin" "WVGA854"
Timob master pull request: https://github.com/appcelerator/titanium_mobile/pull/4143 Timob 3.1.X pull request: https://github.com/appcelerator/titanium_mobile/pull/4144
Chris, After apply your pull request, It work properly. But I can't use fastdev with x86 emulator. If I add "
@JongEun, I have no idea. That's probably best answered by someone on the Android team.
Tested with: osx 10.8.3 Titanium Studio, build: 3.1.0.201304151600 SDK, build:3.1.0.GA Android 4.1.x emulator Result: Android Emulator [x86] launched the created app.
Still looks fairly broken from what I can see. It was working perfectly in 3.0.x / previous Ti Studio :-/ My env: OS X 10.8.3 Titanium Studio, build: 3.1.0.201304151600 (identical to the above report) SDK, build: 3.0.0.GA (different) Android 4.2.2 & 2.3.3 emulators (different) Result: Android emulator is always "emulator64-arm" despite having clearly chosen [x86] option in the Run Configurations setup. Fastdev also used to work (albeit with quirks). The -arm error seems not to be affected by this setting. (?)
Hi Conny, Does this issue cover your problems? TC-2157
No, this happens regardless of fastdev enabled/disabled. Titanium Studio consistently creates/launches -arm profiles, despite [x86] profiles being selected in the Run Configurations. My workspace had no modifications made to it and it worked previously in 3.0.x, launching x86 profile just as specified.
I have set _
Reopened to add comments
I attached a screenshot. Running configuration: Titanium Studio, build: 3.1.0.201304171607 SDK, build: 3.1.0.GA Android API: Android 4.1.2[x86]
(For now, I have to use this workaround: edit ~/.android/avd/titanium_XX_HVGA_armeabi-v7a/config.ini and force it to launch x86 emulator - Titanium Studio will match only the NAME of the AVD but then launch the assigned emulator abi: abi.type=x86 avd.ini.encoding=ISO-8859-1 disk.dataPartition.size=512MB hw.cpu.arch=x86 hw.gps=yes hw.gpu.enabled=yes hw.keyboard=yes hw.lcd.density=160 hw.mainKeys=no hw.ramSize=512 hw.sdCard=yes image.sysdir.1=system-images/android-17/x86/ sdcard.path=/Users/conny/.titanium/titanium_11_HVGA_armeabi-v7a.sdcard skin.name=320x528 skin.path=320x528 vm.heapSize=48
(unrelated but, oops should've been data.dataPartition.size)