Gradle构建VS eclipse构建(Gradle build VS eclipse build)

我对使用gradle的一个特定应用程序的构建有问题。 该应用程序可以使用eclipse进行编译和构建,并且在平板电脑上运行良好。 当我尝试使用Gradle构建它时,我在“compileDebugJava”部分中遇到错误。 我收到这个错误

“错误:涉及class1公共类class1的循环继承实现了class2”

在这之后我得到了一堆其他错误,但这是顶部的错误。 我的项目取决于另一个,而另一个取决于另一个。 我只是不知道为什么它在eclipse中工作但不适用于Gradle。

I have a problem with a build for one specific application with gradle. The application can be compile and build with eclipse and it works well on the tablet. When I try to build it with Gradle I get error in the "compileDebugJava" part. I get this error

"error: cyclic inheritance involving class1 public class class1 implements class2"

I get a bunch of other error after this one but this is the one on the top. My project is depending on another one and this another is depending on a nother one. I just don't know why it works in eclipse but not with Gradle.

最满意答案

我修好了。 似乎Eclipse比构建系统上的gradle更宽松。 在代码中确实存在需要修复的循环继承。 我不知道如何,但是eclipse允许它。 修复代码后,一切都很好,干净的构建。

I've fixed it. It appears that Eclipse is more permissive than gradle on the build system. There really was a cyclic inheritance in the code that needed to be fixed. I don't know how, but eclipse allow it. After fixing the code, all was fine with a clean build.

更多推荐