Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13515] Titanium Studio 3.1 can't use Android x86 emulator

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-04-23T16:31:24.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sRelease 3.1.0, 2013 Sprint 08
Componentsn/a
Labelsandroid,, emulator, qe-closed-3.1.0, regression, triage, x86
ReporterDaniel Sefton
AssigneeChris Barber
Created2013-04-10T15:40:12.000+0000
Updated2013-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

FileDateSize
Screen Shot 2013-04-23 at 9.25.44 AM.png2013-04-23T16:28:08.000+0000272038

Comments

  1. Michael Xia 2013-04-10

    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.
  2. Praveen Innamuri 2013-04-10

    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"
  3. Chris Barber 2013-04-11

    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
  4. Jong Eun Lee 2013-04-11

    Chris, After apply your pull request, It work properly. But I can't use fastdev with x86 emulator. If I add "true" to tiapp.xml, arm emulator run (instead of x86.) Is there way to use fastdev on x86 emulator? Thanks.
  5. Chris Barber 2013-04-11

    @JongEun, I have no idea. That's probably best answered by someone on the Android team.
  6. Olga Romero 2013-04-17

    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.
  7. Conny Brunnkvist 2013-04-21

    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. (?)
  8. Daniel Sefton 2013-04-22

    Hi Conny, Does this issue cover your problems? TC-2157
  9. Conny Brunnkvist 2013-04-23

    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.
  10. Conny Brunnkvist 2013-04-23

    I have set _17_ however I'm not sure as to whether this is related.
  11. Olga Romero 2013-04-23

    Reopened to add comments
  12. Olga Romero 2013-04-23

    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]
  13. Conny Brunnkvist 2013-04-30

    (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
  14. Conny Brunnkvist 2013-04-30

    (unrelated but, oops should've been data.dataPartition.size)

JSON Source