16 Replies Latest reply on Aug 25, 2014 10:22 PM by Kutir Mobility

    Failed to run my 1st RhoMobile application

    Lee Poo Tew

      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'

       

       

       

       

        • Re: Failed to run my 1st RhoMobile application
          Lee Poo Tew

          Can anyone tell me how to troubleshoot this error?

           

          Thanks.

            • Re: Failed to run my 1st RhoMobile application
              BHAKTA RANJAN SATAPATHY

              Hi,

               

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

               

              Thanks

              • Re: Failed to run my 1st RhoMobile application
                Glenn Sayer

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

                  • Re: Failed to run my 1st RhoMobile application
                    Lee Poo Tew

                    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

                      • Re: Failed to run my 1st RhoMobile application
                        BHAKTA RANJAN SATAPATHY

                        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

                          • Re: Failed to run my 1st RhoMobile application
                            Lee Poo Tew

                            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

                              • Re: Failed to run my 1st RhoMobile application
                                Lee Poo Tew

                                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

                                  • Re: Failed to run my 1st RhoMobile application
                                    Lee Poo Tew

                                    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:

                          • Re: Failed to run my 1st RhoMobile application
                            Kutir Mobility

                            Hi

                            Have you tried it as guided by Bhakta ?

                            Thank you.

                             

                            Visnupriya R

                            Kutir Mobility

                          • Re: Failed to run my 1st RhoMobile application
                            Anny Wink

                            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?

                              • Re: Re: Failed to run my 1st RhoMobile application

                                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
                                  • Re: Re: Failed to run my 1st RhoMobile application
                                    Anny Wink

                                    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

                                • Re: Re: Failed to run my 1st RhoMobile application
                                  Anny Wink

                                  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