Closed Watson1978 closed 8 years ago
This issue occurs with new project
$ motion create --template=flow Hello
$ cd Hello
$ rake android:emulator
... snip ...
Compile /Users/watson/.rbenv/versions/2.4.0-preview1/lib/ruby/gems/2.4.0/gems/motion-flow-0.1.1/lib/../flow/ui/android/camera.rb
Compile /Users/watson/.rbenv/versions/2.4.0-preview1/lib/ruby/gems/2.4.0/gems/motion-flow-0.1.1/lib/../flow/ui/android/ui.rb
Compile /Users/watson/.rbenv/versions/2.4.0-preview1/lib/ruby/gems/2.4.0/gems/motion-flow-0.1.1/lib/../flow/ui/android/view.rb
Compile /Users/watson/.rbenv/versions/2.4.0-preview1/lib/ruby/gems/2.4.0/gems/motion-flow-0.1.1/lib/../flow/ui/android/label.rb
Compile /Users/watson/.rbenv/versions/2.4.0-preview1/lib/ruby/gems/2.4.0/gems/motion-flow-0.1.1/lib/../flow/ui/android/screen.rb
Compile /Users/watson/.rbenv/versions/2.4.0-preview1/lib/ruby/gems/2.4.0/gems/motion-flow-0.1.1/lib/../flow/ui/ui.rb
Compile /Users/watson/.rbenv/versions/2.4.0-preview1/lib/ruby/gems/2.4.0/gems/motion-flow-0.1.1/lib/../flow/ui/android/text.rb
Compile /Users/watson/.rbenv/versions/2.4.0-preview1/lib/ruby/gems/2.4.0/gems/motion-flow-0.1.1/lib/../flow/ui/android/web.rb
Create build/android/Development-23/lib/x86/libpayload.so
Create build/android/Development-23/lib/x86/gdbserver
Create build/android/Development-23/lib/x86/gdb.setup
ERROR! Class `ActivityIndicator' already defined with a different super class (`View')
This issue is occurred since 807ecfd6cfb5cc49e9e9f63167daafc14a0e7da0 patch
ActivityIndicator
had defined with different namespace of super class.
module UI
class ActivityIndicator < View
...
module UI
class ActivityIndicator < UI::View
...
Then, when generate Java files from .map, this error was occurred at https://github.com/HipByte/RubyMotion/blob/master/lib/motion/project/template/android.rb#L416-L418
@Watson1978 this file https://github.com/HipByte/Flow/blob/807ecfd6cfb5cc49e9e9f63167daafc14a0e7da0/flow/ui/activity_indicator.rb doesnt exist anymore, or am I mistaking ?
@jjaffeux you're right. I had just investigated the root of this issue more.
Ok ;)
With latest commits, the build error will be occurred when build "samples/ui_demo" app with
rake android:emulator
At least, "samples/ui_demo" works commits until https://github.com/HipByte/Flow/commit/42c33cc4abff6ac736e7c0977835646e39a86247