HipByte / Flow

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

[Android] Interference with resources? #49

Closed cameron-K closed 8 years ago

cameron-K commented 8 years ago

I had the gem installed and working, but I noticed my layout files located in 'resources/layout/activity_item.xml' were not available when trying to reference them with R::Layout::Activity_item

Exception raised: NameError: uninitialized constant Activity_item' 09-30 15:37:00.580 3526 3526 E com/xx/eventer: from item_activity.rb:5 inonCreate'

attempting to retreive the id: resources.getIdentifier('activity_item', 'layout', packageName)

returns 0

Removing the gem and full clean and rebuild solved that problem

cameron-K commented 8 years ago

I just needed to specify the resources path with app.resources_dirs in the rakefile.