A problem occurred evaluating project ':app'.
java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
can anyone tell me what is the problem..?? Im trying to Migrate db...and I have Followed all the steps given on the Sugar ORM official page..!!
Error:Execution failed for task ':app:packageDebug'.
java.io.FileNotFoundException: D:\Finja\MyApplication222\app\build\intermediates\assets\debug\sugar_upgrades (Access is denied)
List<Book> mBooks = Book.findWithQuery(Book.class, "Select * from Book GROUP BY DATE_FORMAT(date, '%Y%m')");
List<Book> mBooks = Book.findWithQuery(Book.class, "Select * from Book GROUP BY YEAR(date), MONTH(date)")
when i run this 2 query get no such function DATE_FORMAT or YEAR
here is my class file
public class Book extends SugarRecord {
String title;
String edition;
Date date;
}