Play 商店中的 API 支持

标签 api google-play

美好的一天,今天我将我的应用程序上传到 google play,在我的应用程序的稳定性部分,似乎我有一个 API 的兼容性问题,不幸的是我不知道它是哪一个,它抛出了以下错误: Landroid/图形/字体; -> sSystemFontMap: Ljava/util/Map ,然后他们添加了以下内容:

StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/graphics/Typeface;->sSystemFontMap:Ljava/util/Map;
    at android.os.StrictMode.lambda$static$1(StrictMode.java:416)
    at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2)
    at java.lang.Class.getDeclaredField(Native Method)
    at androidx.test.tools.crawler.platform.hybrid.TextViewHelper.getSystemFontMap(TextViewHelper.java:3)
    at androidx.test.tools.crawler.platform.hybrid.TextViewHelper.<clinit>(TextViewHelper.java:1)
    at androidx.test.tools.crawler.platform.hybrid.TextViewHelper.getTextOfTextViewOrEmpty(TextViewHelper.java:1)
    at androidx.test.tools.crawler.platform.hybrid.EspressoElement.extractDescription(EspressoElement.java:4)
    at androidx.test.tools.crawler.platform.hybrid.EspressoElement.create(EspressoElement.java:2)
    at androidx.test.tools.crawler.platform.hybrid.ViewScreenStateBuilder$ViewTreeNode.<init>(ViewScreenStateBuilder.java:1)
    at androidx.test.tools.crawler.platform.hybrid.ViewScreenStateBuilder.traverseAndBuild(ViewScreenStateBuilder.java:5)
    at androidx.test.tools.crawler.platform.hybrid.HybridStateExtractor.tryExtractingScreenState(HybridStateExtractor.java:9)
    at androidx.test.tools.crawler.platform.hybrid.HybridStateExtractor.getStableScreen(HybridStateExtractor.java:2)
    at androidx.test.tools.crawler.platform.RemotePlatform.handlePerformScrape(RemotePlatform.java:1)
    at androidx.test.tools.crawler.platform.RemotePlatform.messageLoop(RemotePlatform.java:27)
    at androidx.test.tools.crawler.platform.RemotePlatform.lambda$startCrawlAndWaitUntilFinished$0$RemotePlatform(RemotePlatform.java:1)
    at androidx.test.tools.crawler.platform.RemotePlatform$$ExternalSyntheticLambda0.run(Unknown Source:6)
    at java.lang.Thread.run(Thread.java:923)
你指的是什么Api?我能做些什么来解决这个问题?也许我要问的是显而易见的,但我对此很陌生。
非常感谢您的阅读。

最佳答案

我也是。
Landroid/graphics/Typeface;->sSystemFontMap:Ljava/util/Map;
StrictMode 政策违规:android.os.strictmode.NonSdkApiUsedViolation:Landroid/graphics/Typeface;->sSystemFontMap:Ljava/util/Map;
我不知道这是什么,可能是一个需要flutter解决的问题。

关于Play 商店中的 API 支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68867920/

相关文章:

javascript - 使用带有用户输入的 vanilla js 从 (poke) API 中对 API 数据进行排序

php - Laravel API 版本控制文件夹结构

Python 请求 Get(URL) 200 响应,无数据

android - 应用程序的开发版本是否与市场安装同时安装?

android - Play 商店的应用程序屏幕密度支持

android - Jsoup 的版本检查器不再工作

android - 如何像在 Google Play 商店应用中一样设置 Android SearchView 的样式?

amazon-web-services - AWS 负载均衡器,提供静态站点和 api

ios - 在 iOS 的多个地方使用响应

google-play - 如何从 Google Play 音乐转移到 Plex 音乐