Android 开发疑难笔记
Invoke-customs are only supported starting with Android O (--min-api 26)
在gradle.build中添加以下内容:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
- ObjectBox在多个module的项目里无法编译生成对应module的Box文件
需要在每个module的build.gradle文件里添加
kapt "io.objectbox:objectbox-processor:$objectboxVersion"
- 后台获取定位在不同android系统版本的限制问题
https://developer.android.com/about/versions/oreo/background-location-limits
https://developer.android.com/training/location/background