-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lint errors if minSdk < 11 #3356
Comments
I couldn't reproduce this. Could you share your build.gradle? |
Sure, though it's a pretty basic gradle file. I was just trying Realm out: apply plugin: 'com.android.application'
apply plugin: 'realm-android'
android {
compileSdkVersion rootProject.ext.compileSdkVersion // <-- this is 24
buildToolsVersion rootProject.ext.buildToolsVersion // <-- this is 24.0.2
defaultConfig {
applicationId "nz.bradcampbell.realmexample"
minSdkVersion rootProject.ext.minSdkVersion // <-- this is 9
targetSdkVersion rootProject.ext.targetSdkVersion // <-- this is 24
versionCode 1
versionName "1.0"
}
compileOptions {
sourceCompatibility rootProject.ext.sourceCompatibilityVersion // <-- this is 1.7
targetCompatibility rootProject.ext.targetCompatibilityVersion // <-- this is 1.7
}
}
dependencies {
compile deps.supportAnnotations // latest
compile deps.appCompat // latest
} The errors were all to do with e.g.:
Are you suppressing your lint errors? |
The proxy classes have |
@kneth this discussion reminds me of #489 (comment) |
@grandstaish Thank you for providing detailed information. I reproduced this issue. Realm has a method that uses It's a bug of Realm and should be fixed. And we should update our documentation about limited support of |
…project is smaller than 11. fixes #3356
Fixed in |
Apparently Realm should work on Android all the way down to API 9 (https://realm.io/docs/java/latest/#prerequisites), but if your minSdk is below 11, you get a whole bunch of lint errors that break the build (even with a new Realm sample).
The text was updated successfully, but these errors were encountered: