Recently, I used the Realm database in my project, and I received an unexpected error:

Compilation failed; see the compiler error output for details.

If more detailed:

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

 

There’s nothing revelatory about it.

When I finally compared my two entity classes, I found that I had to provide a no-argument constructor

Then the problem was solved. The problem is very simple, is this error message, a little disgusting!