-
Notifications
You must be signed in to change notification settings - Fork 108
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
Update compileSdk to 34 and fix deprecation warning #335
Comments
Thanks for flagging. I'll have to investigate what the recommended API is going forward. Should be straightforward to fix it if it only requires using a different API (haven't investigated yet) |
If anyone is interested, here's the work around in groovy:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello.
Please bump compileSdk to 34 for your lib and sample.
In my project I have
allWarningsAsErrors = true
withinkotlinOptions { .. }
.The issue is that ksp generates the following
Class.forName("de.hochbahn.hvvswitch.ui.RootModuleCodegen").newInstance()
where
newInstance()
is deprecated with compileSdk 34 and this fires due toallWarningsAsErrors = true
.As workaround I currently run a script after the gradle ksp task that adds
@Suppress("DEPRECATION")
to that function:The text was updated successfully, but these errors were encountered: