HipByte / Flow

Cross-platform libraries for RubyMotion
BSD 2-Clause "Simplified" License
141 stars 29 forks source link

I cannot change app icon when "motion-flow" is added to the Rakefile (android app) #36

Open ulversson opened 8 years ago

ulversson commented 8 years ago

Without require "motion-flow" in the Rakefile my android project seems to be compiling fine. After adding require "motion-flow".I'm getting an error like the one below. I'm specifying

app.icon in the Rakefile it compiles ok with this icon (located in drawable directory). With require "motion-flow" crashes with the following message:

`build/android/Development-22/AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon').

rake aborted! Command failed with status (1): ["/Users/ulversson/.rubymotion-android/sdk/...] /Library/RubyMotion/lib/motion/project/template/android.rb:578:in block in <top (required)>' /Library/RubyMotion/lib/motion/project/template/android.rb:786:inblock (2 levels) in <top (required)>' /Users/ulversson/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/exe/rake:27:in <top (required)>' /Users/ulversson/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:ineval' /Users/ulversson/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in <main>' Tasks: TOP => build (See full trace by running task with --trace)

davetrollope commented 6 years ago

I just ran in to this same problem in a non-flow app because I added flow for its JSON module. The suggested work around in #64 fixed the problem for me. This is likely to trip up many new apps and would be really good to address. 2c