Ich arbeite an einer RubyMotion App für Android. Ich möchte ein Symbol hinzufügen. The documentation sagt dies:Wie füge ich meiner RubyMotion Android App ein Symbol hinzu?
icon
: Project icon name, as a String. The value must be the basename (without the extension) of an icon file that exists inside the drawable resource directory
Ich habe diese Linie in meinem Rakefile:
Motion::Project::App.setup do |app|
...
app.icon = 'icon'
ich ein paar Plätze versucht haben, die Symboldatei zu setzen, und nicht in der Lage gewesen, es zum Laufen zu bringen:
Platzieren Sie das Symbol in resources/icon.png
gibt diesen Fehler:
» rake device
Create ./build/Development-23/AndroidManifest.xml
invalid resource directory name: ./resources icon.png
rake aborted!
Command failed with status (1): ["/Users/me/.rubymotion-android/sd...]
/Library/RubyMotion/lib/motion/project/template/android.rb:188:in `block in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/android.rb:786:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/android.rb:786:in `each'
/Library/RubyMotion/lib/motion/project/template/android.rb:786:in `block in <top (required)>'
/Users/me/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `eval'
/Users/me/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => build
(See full trace by running task with --trace)
Plac Das Symbol in resources/@drawable/icon.png
gibt den gleichen Fehler mit invalid resource directory name: ./resources @drawable
. Wenn Sie das Symbol im Stammverzeichnis des Projekts platzieren, wird derselbe Fehler angezeigt.
Wo lege ich mein Icon ab? Geben Sie einen Versuch diese