我在运行rake run时遇到错误:android

时间:2015-04-16 08:58:18

标签: ruby multithreading udp rhomobile

当我使用命令rake run:android运行我的应用程序时,我附加了以下错误。我正在使用Rho Mobile(Ruby)开发这个,我也使用ruby线程来连接服务器它完全是基于UDP协议的服务器和客户端之间的通信

D:\Rhomobile\Workspace\Ruby\RTG>rake run:android   
D:\Rhomobile\Workspace\Ruby\RTG>rake --trace
cd C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.1.1
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:93: warning: alr
eady initialized constant OPT_TABLE
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1268: warning: a
lready initialized constant S_IF_DOOR
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1496: warning: a
lready initialized constant DIRECTORY_TERM
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1500: warning: a
lready initialized constant SYSCASE
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1619: warning: a
lready initialized constant LOW_METHODS
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/1.9.1/FileUtils.rb:1625: warning: a
lready initialized constant METHODS
rake aborted!
Don't know how to build task 'default'
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.4.2/lib/rak
e/task_manager.rb:62:in `[]'
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.4.2/lib/rak
e/application.rb:149:in `invoke_task'
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.4.2/lib/rak
e/application.rb:106:in `block (2 levels) in top_level'
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.4.2/lib/rak
e/application.rb:106:in `each'
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.4.2/lib/rak
e/application.rb:106:in `block in top_level'
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.4.2/lib/rak
e/application.rb:115:in `run_with_threads'
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.4.2/lib/rak
e/application.rb:100:in `top_level'
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.4.2/lib/rak
e/application.rb:78:in `block in run'
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.4.2/lib/rak
e/application.rb:176:in `standard_exception_handling'
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.4.2/lib/rak
e/application.rb:75:in `run'
C:/MotorolaRhoMobileSuite4.1.1/ruby/lib/ruby/gems/1.9.1/gems/rake-10.4.2/bin/rak
e:33:in `<top (required)>'
C:/MotorolaRhoMobileSuite4.1.1/ruby/bin/rake:23:in `load'
C:/MotorolaRhoMobileSuite4.1.1/ruby/bin/rake:23:in `<main>'

任何人都可以建议我解决这个问题。

1 个答案:

答案 0 :(得分:0)

显然你没有使用正确的命令来构建你的应用程序:

rake --trace

您应该使用(如您所述)完整的命令:

rake run:android