Flutter, Accessing hidden method

2,879

Quote from GitHub issue:

The bad news is taking a cursory look seems to show that it's not a Flutter issue but a general Android issue with how Android protobufs are using hidden APIs.

It's been fixed on Android 11 in https://android-review.googlesource.com/c/platform/art/+/1294616/ but unfortunately is unlikely to be backported to older Android versions. A more likely scenario is plugins updating to newer transitive versions of protobufs. There isn't much we can do in Flutter. Using the IDE to hide those messages in the output is a reasonable workaround in the meantime such as #27095 (comment).

Internal issue b/154851649. External protobuf issue protocolbuffers/protobuf#7337.

https://github.com/flutter/flutter/issues/27095

Just ignore it

Share:
2,879
guccisekspir
Author by

guccisekspir

I am flutter developer from Turkey. Computer Science Engineer student 3rd in Black Sea Technical University <3

Updated on December 27, 2022

Comments

  • guccisekspir
    guccisekspir over 1 year

    I don't know exactly after what I get this error but every after 3 second I get access hidden method error in my debug log. How can I examine which function do this access and why? Is it the real problem? Should I avoid from this?

     W/m.sekspir.mood(25281): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
    W/m.sekspir.mood(25281): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
    W/m.sekspir.mood(25281): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
    W/m.sekspir.mood(25281): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
    W/m.sekspir.mood(25281): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
    W/m.sekspir.mood(25281): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
    W/m.sekspir.mood(25281): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)