Closed acrogenesis closed 9 years ago
@acrogenesis Hi, could you explain why you think it's related to motion-gradle ? motion-gradle doesn't generate this MainActivity.java
I'm not sure it's motion-gradle the responsible but it is related because I was able to build the jar and libs myself using the ./gradlew jarRelease
and adding it to RubyMotion as an external library. So basically if I add it using the
app.gradle do
dependency 'com.danikula:videocache:2.3.1'
end
It fails.
Please look at http://community.rubymotion.com/t/rubymotion-bug-mainactivity-is-already-defined-in-class-mainactivity/1127/2 I have answered here, thx.
When adding this specific gradle dependency
'com.danikula:videocache:2.3.1'
the .java file generated for MainActivity declarespublic MainActivity() { super(); }
twice.build/Development-19/java/com/yourcompany/hello/MainActivity.java
Code Sample: https://github.com/acrogenesis/rubymotion-constructor-bug
http://community.rubymotion.com/t/mainactivity-is-already-defined-in-class-mainactivity/1127