2 Replies Latest reply on Dec 27, 2013 8:45 AM by Daniel Silva

    I am unable to generate the apk file

      Hi. I m new on RHOMobile

       

      Recently i have configure it for android development but i m unable to compile the apk file

       

      My Operating System: Windows7 - 32x

      I have also configured the Android SDK and NDK Path Preferences \ RHOMobile \ Android

      I have also defined the Android Setting in Run As \ Configuration \ RHO Mobile Application (

           Platform: Android,

           Simulator Type: Simulator,

           AVD: Galaxy_Nexus )

      I have also configured Android Virtual Device in AVD manager with the name of Galaxy_Nexus

      NOTE: I am was using same SDK and same Virtual Devices for the Development of android app

      ======================================================================

      FOLLOWING IS THE LOG DETAIL WHEN I GO TRIED TO COMPILE FOR APK FILE

      ======================================================================

      PWD: E:\Projects Phones\testApp

      CMD: rake clean:android

      cd C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.0.0

      rake aborted!

      Permission denied - wmic OS get OSArchitecture

       

      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", "rhoelementsext", "motoapi", "barcode", "cardreader", "indicators", "hardwarekeys", "sensor", "rhoelements-license"]

      $app_config['capabilities'] : ["motorola"]

      !!!MODIFY C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.0.0/platform/shared/common/app_build_configs.c

      !!!MODIFY C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.0.0/platform/shared/common/app_build_capabilities.h

      Using Android SDK build-tools: android-4.4

      $vendor = rhomobile

      $app_package_name = com.rhomobile.testapp

      RET: 1

      build started

       

      PWD: E:\Projects Phones\testApp

      CMD: rake run:android --trace

      cd C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.0.0

      ** Invoke run:android (first_time)

      ** Invoke run:android:emulator (first_time)

      ** Invoke config:android:emulator (first_time)

      ** Invoke config:android (first_time)

      ** Invoke config:set_android_platform (first_time)

      ** Execute config:set_android_platform

      ** Execute config:android

      ** Invoke config:common (first_time)

      ** Execute config:common

      ** Invoke config:android:app_config (first_time)

      ** Execute config:android:app_config

      rake aborted!

      Permission denied - wmic OS get OSArchitecture

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.0.0/platform/android/build/androidcommon.rb:76:in ``'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.0.0/platform/android/build/androidcommon.rb:76:in `detect_toolchain'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.0.0/platform/android/build/androidcommon.rb:107:in `setup_ndk'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.0.0/platform/android/build/android.rake:456:in `block (2 levels) in <top (required)>'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'

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

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'

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

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'

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

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'

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

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'

      C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'

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

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

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

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

      1.9.3

      $app_config['extensions'] : ["coreapi", "json", "rhoconnect-client", "rhoelementsext", "motoapi", "barcode", "cardreader", "indicators", "hardwarekeys", "sensor", "rhoelements-license"]

      $app_config['capabilities'] : ["motorola"]

      +++ API LEVEL of D:/ADT/sdk/platforms/android-10: 10

      +++ API LEVEL of D:/ADT/sdk/platforms/android-19: 19

      +++ API LEVEL of D:/ADT/sdk/platforms/android-7: 7

      Use Google addon API: false

      Using Android SDK build-tools: android-4.4

      $vendor = rhomobile

      $app_package_name = com.rhomobile.testapp

      setup_ndk(D:/ADT/android-ndk-r9c, 19)

      RET: 1

      Error in build application. Build is terminated.


       

      Please Help Me..

       

      Thanks in Advance