GreenDao NoClassDefFoundError&&finished with non-zero exit value 1

**问题1、Generator fails to run NoClassDefFoundError: org/greenrobot/greendao/generator/Schema
参考:https://github.com/greenrobot/greenDAO/issues/619#issuecomment-291058096
**问题2、 Android java.exe finished with non-zero exit value 1
参考:https://github.com/greenrobot/greenDAO/issues/755

GreenDao NoClassDefFoundError&&finished with non-zero exit value 1_第1张图片
图1

对图1下面圈出的错误,在gradle中加上在执行Run,出现图2的错误

GreenDao NoClassDefFoundError&&finished with non-zero exit value 1_第2张图片
图2

这个问题我这里的解决方法是将图3中原来的generatePath=“app/src/main/java”,改为generatePath=“../app/src/main/java” 在执行就ok了

GreenDao NoClassDefFoundError&&finished with non-zero exit value 1_第3张图片
图3

你可能感兴趣的:(GreenDao NoClassDefFoundError&&finished with non-zero exit value 1)