GoogleMap - throwing exception No static method isTraceInProgress() on creation
See original GitHub issueAndroid SDK 32 implementation ‘com.google.maps.android:maps-compose:2.1.1’ implementation ‘com.google.maps.android:maps-ktx:3.2.1’ implementation ‘com.google.android.gms:play-services-maps:18.0.2’
When adding a google map:
Box(Modifier.fillMaxWidth().height(200.dp)) {
GoogleMap {
}
}
The following exception is thrown:
2022-05-29 11:25:43.068 7068-7068/com.test/AndroidRuntime: FATAL EXCEPTION: main
Process: com.test.app, PID: 7068
java.lang.NoSuchMethodError: No static method isTraceInProgress()Z in class Landroidx/compose/runtime/ComposerKt; or its super classes (declaration of 'androidx.compose.runtime.ComposerKt' appears in /data/app/~~XD2sjyOaEipBqqf6GjSbvg==/com.test.app-ipMwN6R8eShn1COKo-3qbQ==/base.apk)
at com.google.maps.android.compose.GoogleMapKt.GoogleMap(Unknown Source:6)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
ERROR: java.lang.NoSuchMethodError: No static method ...
NoSuchMethodError: No static method isTraceInProgress()Z in class ... internal error running command: A new session could not be created.
Read more >Android Studio: No Such Method Error: No static method zzb ...
I am making an app which uses google maps API. ... NoSuchMethodError: No static method zzb(Ljava/lang/Object;Ljava/lang/Object ...
Read more >androidx.compose.runtime - Android Developers
This annotation can be applied to Composable functions so that no groups will be generated in the body of the function it annotates....
Read more >Error Messages | Maps JavaScript API - Google Developers
This page describes the error messages that can be returned by the Maps JavaScript API. The Maps JavaScript API writes error and warning...
Read more >No static method setContent, because of gradle buildSrc "com ...
NoSuchMethodError: No static method setContent, because of gradle ... We see this error when you are trying to build without the Compose compiler...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@barbeau dang, sorry about that. Moved to 1.2.0-beta02 and all is well.
@newmanw Thanks for the report!
What version of Jetpack Compose are you using? You’ll need
1.2.x
of Compose with Maps Compose 1.3.0 and up.