amirrajan / rubymotion-applied

RubyMotion documentation provided by the community. Submit a pull request to the docs for a free one year indie subscription.
Apache License 2.0
49 stars 9 forks source link

`no resource identifier found` #78

Closed amirrajan closed 6 years ago

amirrajan commented 6 years ago

No worky: https://github.com/gregmolnar/Hello

hboon commented 6 years ago

Instead of manually downloading the jar and vendoring, you can use https://github.com/HipByte/motion-gradle instead.

In your Gemfile:

gem 'motion-gradle'

Rakefile:

app.gradle do
    repository 'https://maven.google.com'
    dependency 'com.android.support:design:25.4.0' #I didn't double check the version
end

Then:

bundle install
rake gradle:install

Should work for a vanilla RubyMotion Android project. Probably have to adapt it for motion-flow.

cc @gregmolnar

gregmolnar commented 6 years ago

@hboon I tried that but the issue is, Flow already includes a different version of appcompat and it causes issues. I guess the best would be to figure out how to make Flow not include the libraries included by the main project as it's mentioned here: https://github.com/HipByte/Flow/blob/master/lib/motion-flow/loader.rb#L29 I will look into how to make that work.

gregmolnar commented 6 years ago

I think made this work. @amirrajan would you be open to use motion-gradle rather then vendor_project in Flow to manage dependencies? In my sample app if I do so, it nicely allows me to override them and use a newer version of them if necessary. If you are OK with it, I will open a PR on Flow and motion-gradle to make them work together.

amirrajan commented 6 years ago

related: https://github.com/amirrajan/rubymotion-applied/issues/79