安卓错误与缺乏对java 8的支持有关
我遵循了这个自述https://github.com/evant/gradle-retrolambda
我补充道
classpath 'me.tatarka:gradle-retrolambda:3.7.1'
给格拉德尔。建造
及
给格拉德尔。构建(应用程序)
及
安卓 {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
但我得到的错误是:
Invoke-customs are only supported starting with Android O (--min-api 26)
Default interface methods are only supported starting with Android N (--min-api 24): L安卓x/room/migration/AutoMigrationCallback;onPostMigrate(L安卓x/sqlite/db/SupportSQLiteDatabase;)V
共 (0) 个答案