rubymotion-community / motion-support

Commonly useful extensions to the standard library for RubyMotion
MIT License
132 stars 28 forks source link

Silent crash using motion-support on Android #44

Open davetrollope-fsml opened 5 years ago

davetrollope-fsml commented 5 years ago

Using @wndxlori PR #42 to resolve relative path issues, trying to require the full motion-support gem causes the app to crash with no error info:

    Create ./build/Development-26/classes.dex
Merged dex #1 (6 defs/1.9KiB)
Merged dex #2 (48 defs/15.1KiB)
Result is 54 defs/20.6KiB. Took 0.0s
    Create ./build/Development-26/Hello.apk
      Sign ./build/Development-26/Hello.apk
     Align ./build/Development-26/Hello.apk
   Install ./build/Development-26/Hello.apk
     Start com.yourcompany.hello/.MainActivity
--------- beginning of main
--------- beginning of system
--------- beginning of crash
(main)>
Remote process has quit.
error: no devices found

Steps: create a new project: motion create --template=android Hello Add to Gemfile: gem 'motion-support', git: 'https://github.com/wndxlori/motion-support.git', ref: '3fedd09', require: false Add to Rakefile: require 'motion-support' Then run bundle and bundle exec rake motion --version: 5.17 on mohave

andrewhavens commented 5 years ago

This gem was originally written prior to RubyMotion Android support, but we can work towards adding Android support.