android / codelab-android-compose

Apache License 2.0
1.46k stars 668 forks source link

[AdvancedStateAndSideEffectsCodelab] Cannot build project #481

Open tigerlily777 opened 4 months ago

tigerlily777 commented 4 months ago

.../AdvancedStateAndSideEffectsCodelab/app/src/main/java/androidx/compose/samples/crane/details/DetailsActivity.kt:159:29 None of the following candidates is applicable: suspend fun MapFragment.awaitMap(): GoogleMap suspend fun MapView.awaitMap(): GoogleMap suspend fun SupportMapFragment.awaitMap(): GoogleMap

.../AdvancedStateAndSideEffectsCodelab/app/src/main/java/androidx/compose/samples/crane/details/DetailsActivity.kt:160:19 Cannot inline bytecode built with JVM target 17 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option.

I assume the dependencies lib below is built with JVM target 17? implementation "com.google.android.libraries.maps:maps:3.1.0-beta" Do we have an updated lib that built with 18?