Sorry, it is me again with yet another warning when trying to publish my app.
Just like @totebo posted a while ago in his thread , the Play Console’s pre-launch test moans about compatibility in the “stability” tab of the report.
The warning is different, though. I have searched before I posted, but I couldn’t find useful info about it.
I do not use any extensions and the engine is up-to-date.
Yes, it is a warning, but the “stability” bit makes me a bit nervous.
Has anyone an idea what this is about? I can provide screens of the details if that helps.
yes, I have it as well.
But game works just fine.
It’s hard to find something related to this particular warning anywhere, and for some reason there is nothing about it on android site for any of android versions: Restrictions on non-SDK interfaces | Platform | Android Developers
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)
UPD: Maybe it’s one of their false positive warnings
This is a warning that points to something in androidx library by Google we use in one as a dependency.
More likely they will fix it in later versions and it will disappear when we update it.
I don’t know, sorry.
This API violation happen just because Google decided to make some API private, but still, use these API in their own libraries.
In this particular case, this is not critical because this API isn’t blocked but marked as “better to replace”, because it’s in a light-gray list not in the black list.
I don’t really know what this particular API does. If you google it you will find this Typeface | Android Developers
Thanks again @AGulev! Just had a look at the link. It is all very, very strange, I even use a Google Font!
Be as it may, thank you very much for helping me out. I shall ignore the warning.