gpt4 book ai didi

java - Flutter,访问隐藏方法

转载 作者:行者123 更新时间:2023-12-04 03:42:08 31 4
gpt4 key购买 nike

关闭。这个问题需要details or clarity .它目前不接受答案。












想改进这个问题?通过 editing this post 添加详细信息并澄清问题.


去年关闭。







Improve this question




我不知道我收到此错误的确切原因,但每隔 3 秒,我的调试日志中就会出现访问隐藏方法错误。如何检查执行此访问的功能以及为什么?这是真正的问题吗?我应该避免这种情况吗?

 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)

最佳答案

引用 GitHub 问题:

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

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

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


https://github.com/flutter/flutter/issues/27095
忽略它

关于java - Flutter,访问隐藏方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65827874/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com