question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GoogleMap - throwing exception No static method isTraceInProgress() on creation

See original GitHub issue

Android 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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
newmanwcommented, Jun 1, 2022

@barbeau dang, sorry about that. Moved to 1.2.0-beta02 and all is well.

1reaction
barbeaucommented, May 31, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found