Android Realm数据库:Compilation failed; see the compiler error output for details.

758 阅读1分钟
原文链接: blog.csdn.net

   最近在项目中使用Realm数据库,然后就出现了一个莫名其妙的报错:

Compilation failed; see the compiler error output for details.

如果再详细点:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':wallet:compileDebugJavaWithJavac'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:95)
    ... 33 more

 

没有任何启示性作用。

最终对比我的两个实体类,才发现:必须需要提供一个无参构造函数

然后这个问题就被解决了。问题很简单,就是这个报错信息,有点恶心!