Failed to run my 1st RhoMobile application

Hi all,

I just installed RMS 4.1.1 into my Windows 8 machine (64-bit) and created my first RhoMobile Application project. When I try to run the application using Win32 Simulator, it gave me the following error and unable to run the simulator at all.

** Invoke run:win32 (first_time)

** Invoke build:win32 (first_time)

** Invoke build:win32:rhobundle (first_time)

** Invoke config:set_win32_platform (first_time)

** Execute config:set_win32_platform

** Invoke config:wm (first_time)

** Invoke config:set_wm_platform (first_time)

** Execute config:set_wm_platform

** Invoke config:common (first_time)

** Execute config:common

rake aborted!

(<unknown>): mapping values are not allowed in this context at line 7 column 11

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/psych.rb:203:in `parse'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'

Lee Poo Tew
Can anyone tell me how to

Can anyone tell me how to troubleshoot this error?

Thanks.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Bhakta Ranjan S...
Hi,Kindly follow the steps

Hi,

Kindly follow the steps available at Rhomobile | Build for Windows to build win32 application.

Thanks

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Glenn Sayer
Something else to try is

Something else to try is building a Rho Simulator build and let us know if this works.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Lee Poo Tew
Hi Glenn,I have tried to

Hi Glenn,

I have tried to build on all platform under Rho Simulator and also Simulator type, all came to the same error as below: -

rake aborted!

(<unknown>): mapping values are not allowed in this context at line 7 column 11

Any more clues or tips on how to resolve this blockage I am facing?

Thanks,

Tew

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Bhakta Ranjan S...
Hi,go to your application

Hi,

go to your application folder in command line. Now run below two commands and provide the files generated.

rake clean:wm > clean.log 2>&1

rake run:wm:rhosimulator --trace > build.log 2>&1

And provide your build.yml too.

Thanks

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Lee Poo Tew
Can't find any function to

Can't find any function to insert the file here. Anyway, here's the content of the Clean.log :

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:93: warning: already initialized constant OPT_TABLE
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1268: warning: already initialized constant S_IF_DOOR
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1496: warning: already initialized constant DIRECTORY_TERM
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1500: warning: already initialized constant SYSCASE
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1619: warning: already initialized constant LOW_METHODS
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1625: warning: already initialized constant METHODS
rake aborted!
(<unknown>): mapping values are not allowed in this context at line 7 column 11

Tasks: TOP => clean:wm => clean:wm:all => clean:wm:rhodes => config:wm => config:common
(See full trace by running task with --trace)
1.9.3

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Lee Poo Tew
And the Build.log as below:

And the Build.log as below: -

cd C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.1.1

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:93: warning: already initialized constant OPT_TABLE

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1268: warning: already initialized constant S_IF_DOOR

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1496: warning: already initialized constant DIRECTORY_TERM

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1500: warning: already initialized constant SYSCASE

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1619: warning: already initialized constant LOW_METHODS

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1625: warning: already initialized constant METHODS

** Invoke run:wm:rhosimulator (first_time)

** Invoke config:set_wm_platform (first_time)

** Execute config:set_wm_platform

** Invoke config:common (first_time)

** Execute config:common

rake aborted!

(<unknown>): mapping values are not allowed in this context at line 7 column 11

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/psych.rb:203:in `parse'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/psych.rb:151:in `parse'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/psych.rb:127:in `load'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.1.1/lib/build/jake.rb:66:in `config'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.1.1/Rakefile:352:in `block (2 levels) in <top (required)>'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in `call'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in `block in execute'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:231:in `each'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:231:in `execute'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:175:in `block in invoke_with_call_chain'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:197:in `block in invoke_prerequisites'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `each'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `invoke_prerequisites'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:174:in `block in invoke_with_call_chain'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:161:in `invoke'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:149:in `invoke_task'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `block (2 levels) in top_level'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `each'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `block in top_level'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:115:in `run_with_threads'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:100:in `top_level'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:78:in `block in run'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:75:in `run'

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/bin/rake:33:in `<top (required)>'

C:/MotorolaRhoMobileSuite4.1.1/ruby/bin/rake:23:in `load'

C:/MotorolaRhoMobileSuite4.1.1/ruby/bin/rake:23:in `<main>'

Tasks: TOP => run:wm:rhosimulator => config:common

1.9.3

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Lee Poo Tew
And here's my Build.yml:

And here's my Build.yml: -

sdkversion: "4.1.0"

name: "SwiftDataTake"

version: "1.0"

vendor: "rhomobile"

build: "debug"

applog: "rholog.txt"

iphone:

  configuration: "Release"

  sdk: "iphonesimulator7.0"

  provisionprofile:

  codesignidentity: "iPhone Developer"

  entitlements:

  BundleIdentifier: "com.rhomobile.swiftdatatake"

  BundleURLScheme: "swiftdatatake"

  emulatortarget: "ipad"

win32:

  msvc: 2012

wp8:

  productid: "fa4b7170-c21e-0131-1f25-02004e435049"

android:

  manifest_template: "AndroidManifest.erb"

  version: "4.0.3"

  emulator: "403"

wm:

extensions:

  - rhoconnect-client

app_type: "rhoelements"

capabilities:

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Kutir Mobility
Hi Have you tried it as

Hi

Have you tried it as guided by Bhakta ?

Thank you.

Visnupriya R

Kutir Mobility

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anny Wink
using the Android 4.03

using the Android 4.03 Simulator the following error occured:

PWD: C:\Users\Anna\Desktop\App\BuFaK Hannover

CMD: rake clean:android

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:93: warning: already initialized constant OPT_TABLE

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1268: warning: already initialized constant S_IF_DOOR

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1496: warning: already initialized constant DIRECTORY_TERM

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1500: warning: already initialized constant SYSCASE

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1619: warning: already initialized constant LOW_METHODS

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1625: warning: already initialized constant METHODS

rake aborted!

No Android SDK add-on found for libraries: ["com.google.android.maps"]; API level: 20

Tasks: TOP => clean:android => clean:android:all => clean:android:files => config:android

(See full trace by running task with --trace)

1.9.3

$app_config['extensions'] : ["coreapi", "json", "rhoconnect-client", "gcm-push"]

$app_config['capabilities'] : ["push", "vibrate", "calendar"]

Using Android SDK build-tools: android-4.4W

$vendor = rhomobile

$app_package_name = com.rhomobile.bufakhannover

RET: 1

build started

PWD: C:\Users\Anna\Desktop\App\BuFaK Hannover

CMD: rake run:android rho_remote_debug=true rho_debug_port=9000 rho_reload_app_changes=0

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:93: warning: already initialized constant OPT_TABLE

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1496: warning: already initialized constant DIRECTORY_TERM

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1500: warning: already initialized constant SYSCASE

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1619: warning: already initialized constant LOW_METHODS

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1625: warning: already initialized constant METHODS

rake aborted!

No Android SDK add-on found for libraries: ["com.google.android.maps"]; API level: 20

Tasks: TOP => run:android => run:android:emulator => config:android:emulator => config:android

(See full trace by running task with --trace)

1.9.3

$app_config['extensions'] : ["coreapi", "json", "rhoconnect-client", "debugger", "uri", "timeout", "gcm-push"]

$app_config['capabilities'] : ["push", "vibrate", "calendar"]

Using Android SDK build-tools: android-4.4W

$vendor = rhomobile

$app_package_name = com.rhomobile.bufakhannover

C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1268: warning: already initialized constant S_IF_DOOR

Can you help?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Michael Toews
You need to add 'gmaps' and

You need to add 'gmaps' and 'mapping' to your build.yml as shown in our docs here.

In short, you need to add the following to your build.yml:

android:

     capabilities:

          - hardware_acceleration

     mapping: yes

     extensions:

          - gmaps

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anny Wink
thx michael, but i am afraid

thx michael, but i am afraid it´s not working

my build file looks like that:

#sdk: "C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.1.1"

sdkversion: "4.1.0"

name: "BuFaK Hannover"

version: 1.0

vendor: "rhomobile"

build: "debug"

applog: "rholog.txt"

iphone:

  configuration: "Release"

  sdk: "iphonesimulator7.0"

  provisionprofile:

  codesignidentity: "iPhone Developer"

  entitlements:

  BundleIdentifier: "com.rhomobile.bufakhannover"

  BundleURLScheme: "bufakhannover"

wp8:

  productid: "016f82c0-044c-0132-91b9-12f02fe796d3"

android:

  manifest_template: "AndroidManifest.erb"

  version: "2.3.3"

  capabilities:

  push:

    sender: 392259519652

wm:

extensions:

#sdk: "MC3000c50b (ARMV4I)"

#sdk: "Windows Mobile 6.5.3 Professional DTK (ARMV4I)"

  - rhoconnect-client

capabilities:

  - push

  - vibrate

  - calendar

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Kutir Mobility
Hi AnnyOne thing I noticed in

Hi Anny

One thing I noticed in your error is "No Android SDK add-on found for libraries: ["com.google.android.maps"]; API level: 20".

Have you installed that image/software via AVD manager ?

Thank you.

Kutir Mobility

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Michael Toews
Maybe I missed something but,

Maybe I missed something but, I don't see where you added the items that I mentioned to your build.yml.

You need to add gmaps and mapping to your build.yml file in the android section. For example::

android:

   capabilities:

       - hardware_acceleration

   mapping: yes

   extensions:

       - gmaps


If you already did this, please post your build.yml file showing this as I did not see it in the one you posted.


Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anny Wink
using the Android 4.03

using the Android 4.03 Simulator the following error occured:

CMD: "C:/Users/Anna/Desktop/Rhomobile/SDK/adt-bundle-windows-x86_64-20140702/sdk/tools/emulator.exe" -cpu-delay 0 -avd rhoAndroid403

PANIC: Could not open: rhoAndroid403

Warning: An emulator is not visible in adb device list. Lets start it again.

CMD: taskkill /F /IM emulator-arm.exe

FEHLER: Der Prozess "emulator-arm.exe" wurde nicht gefunden.

CMD: taskkill /F /IM emulator.exe

FEHLER: Der Prozess "emulator.exe" wurde nicht gefunden.

rake aborted!

Can't start an emulator.

Tasks: TOP => run:android => run:android:emulator

(See full trace by running task with --trace)

RET: 1

Error in build application. Build is terminated.

Don´t know what to do as the rhoAndroid403 is installed as well as emulator-arm.exe and emulator.exe.

Thanks a milln for your help

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Kutir Mobility
Just a thought AnnyHave you

Just a thought Anny

Have you tried to build apk alone instead running it on Android emulator ?

For example: rake device:android:debug works for you (and generates apk so that you can place it on actual android device)?

Thank you.

Kutir Mobility

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments