-
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
Error: Invoke-customs are only supported starting with Android O #6300
Comments
It works when I change realm version to 5.7.0 or minSdkVersion 26. |
Hey - looks like you forgot to add a T:* label - could you please add one? |
android{ Solved! |
Hmm, this shouldn't be required. So even though it is a workaround we don't want to require it. |
hmm i get the error too with 5.8.0, i was downgrading to 5.7.0 and worked |
Some more error details in case it helps: |
For those interested, the error is explained here: https://developer.android.com/studio/write/java8-support
The workaround of enabling Java 1.8 in the project is working for us. I didn't want to enable code shrinking in a debug build, but that might be another workaround based on the description above. |
Can realm fix this 1.8 dependency? We want to use D8 but not R8 yet 1.8 requires R8 set to true in a chicken and egg loop. |
diegomontoya I think you are mistaken about 1.8 requiring R8. The Android Studio 3.2 release notes say,
I have 1.8 enabled and only get the following warning if I specifically enable R8.
|
@jk77 If you want to use R8, you need to at least use Android 3.3RC2 which has updated R8 in beta form. Run your probject in AS 3.3 and you will get desugaring requirements requires R8 to be enabled. We have not tested using AS 3.2 as R8 in that build is not the latest. |
@jk77 Looks like the error is buildconfig dependend. I can no longer reproduce the R8 desugaring requirement error from AS 3.3rc2. Must be some thing I have chagend in build.gradle within the last 24 hours. |
The Java 8 code has been removed (lamdas) and a fix should be in the next release. |
Try to decrease version of Google Cloud dependency if you are using |
afridi315 have tried downgrading from 1.22.1 to 1.20.0 option but now it is giving More than one file was found with OS independent path 'META-INF/INDEX.LIST' |
how can i get the realm |
@victorhez you might want to open a new issue, that obeys the issue template when you open a new issue. |
in build Gradle of the app module |
Goal
Cannot build realm with 5.8.0
Actual Results
Error: Invoke-customs are only supported starting with Android O (--min-api 26)
Steps & Code to Reproduce
Version of Realm and tooling
Realm version(s): ?
5.8.0
Realm Sync feature enabled: Yes/No
Android Studio version: ?
3.2.1
Android Build Tools version: ?
28
Gradle version: ?
3.2.1
Which Android version and device(s): ?
21
The text was updated successfully, but these errors were encountered: