-
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
Android Gradle Plugin 8 Support #7804
Comments
Realm Java 10.15.0 has been released with fixes problems with Java 17 and makes use of the new transformer APIs from Google, which also means that the minimum supported version of AGP is now 7.4. |
|
is that been resolved? |
Yes, this should be working from 10.15.0 onwards. The latest release is 10.16.1. |
This is a meta issue tracking current issues with Android Gradle 8, current workarounds, and how we intend to fix them:
Current issues:
API 'android.registerTransform' is removed with Android Gradle plugin 8.x #7801. In AGP 7.4, Google introduced a new Transformer API, and in 8.0 the old API was completely removed. Realm is currently supporting the new API using a special release named
10.14.0-transformer-api
, ie. using10.14.0
with AGP 8 will not work, you must use the named release.IllegalAccessError with Android Gradle Plugin 8.x and Java 17 #7799. Due to module constraints introduced in Java 17, the Realm Java Annotation Processor is not compatible with it. It can be worked around by using either using gradle properties or by modifying the
build.gradle
file. See the issue for more details.Slower builds with transform-api and AGP 8 #7802. Builds using the new transformer API are reported to be significantly slower in some cases. This is still being investigated.
Transformer-api breaks MoshiX generated adapters #7798). There seems to be an unfortunate interaction between MoshiX and Realm transformer API's causing MoshiX's proguard files to not be correctly added to the final build. It can be worked around by manually adding them. See Transformer-api breaks MoshiX generated adapters #7798 (comment) for more details.
Roadmap for fixes
10.14.0-transformer-api
will be merged tomain
and released as10.15.0
. This will also bump the minimum required AGP to 7.4 and the minimum Java version to 11.The text was updated successfully, but these errors were encountered: