-
Notifications
You must be signed in to change notification settings - Fork 47
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
com.google.maps.android:maps-ktx:5.1.0
requires Java 17 runtime
#266
Comments
Hi @mateuszkwiecinski , thanks for opening this issue. Actually, this problem goes further in the past. In January we updated some of our libraries to include an upgrade in the Android Gradle Plugin from 7.x to 8.x. This requires us to update the Java version to 17, to support the new plugin version. This didn't trigger a release and I can't recall the specific reason, but it should have been a major release (i.e., 6.0.0). The current 5.1.0 release includes this new AGP version and some other updates. I am not sure if it could be worth to release a "lean" 6.0.0 to reflect the breaking change. Probably it could. I am updating also the release notes to reflect this new change. |
But that's only for the build, right? The runtime was not affected by AGP bump, was it? My understanding is you can compile the project with latest java version, but still release artifacts compatible with lower Java versions. Or is it now required for library runtime to use Java 17 features specifically? |
I wanted to check what forced you to bump target version and opened: #267
|
This is correct. I honestly do not recall why the Java version was updated back in January, unfortunately logs for past GitHub actions are not available. The PR you open looks good. Would you mind signing the Google CLA?. I am thinking of whether this should trigger a minor release. It is technically not a breaking change, but the changes that were merged in January and didn't trigger a release are. |
Sure, done ✅
I'm not sure what the versioning policy here is. I can propose downgrading the target version further, down to 1.8 as it was it If you keep setup from |
I have changed the title to Leaving some comments on the PR for transparency. |
Thanks for stopping by to let us know something could be better!
PLEASE READ
If you have a support contract with Google, please create an issue in the support console. This will ensure a timely response.
Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform support resources page.
If your bug or feature request is not related to this particular library, please visit the Google Maps Platform issue trackers.
Check for answers on StackOverflow with the google-maps tag.
Please be sure to include as much information as possible:
Environment details
Steps to reproduce
or whatever it is preferred these days
2. Call
com.google.maps.android.ktx.awaitMap
in the source code3. Compile the app
Expected: The project compiles just fine
Actual: compileDebugKotlin fails with
Cannot inline bytecode built with JVM target 17 into bytecode that is being built with JVM target 11. Please specify proper '-jvm-target' option.
My reasoning why this is a bug:
5.0.0
but it compiles just fine for a project targeting Java 11More insights:
Related articles:
Code example
Stack trace
Following these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: