Pre-launch Report: "Usage of non-SDK interfaces" / API-26 tested on Android 9

433 views
Skip to first unread message
Assigned to ewpa...@gmail.com by steve....@gmail.com

BodyMindPower

unread,
Sep 13, 2018, 8:10:30 AM9/13/18
to MIT App Inventor Forum

Hello,

I get a warning from the Google pre-launch report:
"Problem: Usage of non-SDK interfaces"
when I upload an APK with targetSDK=26 on Google Play and tested on a Pixel 2 with Android 9.
It does not matter if I use the first or second option to compile the app on AI2 nb170.

Logcat (there are a lot of issues like that):
...
D/StrictMode(12635): StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/os/...  (Landroid/view/...)
...
I did not use any additional API.

Thanks
logcat.txt

SteveJG

unread,
Sep 13, 2018, 8:58:22 AM9/13/18
to mitappinv...@googlegroups.com
 At the moment, with the information provided, it is not obvious this is an Android 9 issue.  Does your app run OK on any Android version less than 9?   If the compiled app runs on lower versions there appears to be permissions issue using App Inventor 2 with Android 9.  If  the app does not run on lower versions, the problem may be an extension you use or something else.  We don't know because you did not share your code.  Are you using the Classic Theme?  If your app uses the Classic Theme, try building again using Device Default theme.  Classic is certainly 'non-sdk'



Regards,
Steve. 

BodyMindPower

unread,
Sep 13, 2018, 10:09:15 AM9/13/18
to mitappinv...@googlegroups.com
Hello Steve,

the app is running on all android versions (5-9) (min Sdk=21), also on Android 9 (Oneplus 6 with Android 9 beta).

But I get this warning from the Developer Console.

It is definitive a problem with Android 9. Maybe I will get errors on Android Pie; maybe I can ignore it. 

There is no relevant code to explain this issue. It's a simple sound & voice app. 

(Theme: Dark, responsive)

Regards
Anke

SteveJG

unread,
Sep 13, 2018, 10:17:24 AM9/13/18
to MIT App Inventor Forum
Thank you for the additional information.  The developers will see it.  Android 9 is still in beta release.  MIT certainly will monitor it and attempt to make it usable with AI2 as Android 9 starts normal usage.

Chris Ward

unread,
Sep 13, 2018, 10:47:30 AM9/13/18
to MIT App Inventor Forum
Android 9 Pie is on roll-out, starting August 6th with the Google Pixel Users (Worldwide). 

Evan Patton

unread,
Sep 13, 2018, 7:34:43 PM9/13/18
to MIT App Inventor Forum
Hello,

Based on the stack traces in your log, it looks like the warnings are made in response to the SDK 26 support libraries. Odds are, when we upgrade next year to support SDK 27 or 28 with the corresponding support libraries that those warnings will go away. They shouldn't immediately affect you since they are only enforced once the app targets SDK 28. If you happen to run into any hard issues related to this that crash your app, please follow up.

Thanks,
Evan

BodyMindPower

unread,
Sep 14, 2018, 2:04:06 AM9/14/18
to MIT App Inventor Forum
Hello Evan,

Thank you for the explanations. The pre-launch report has only been showing this warning for a few days. So I will ignore this first and wait for an update of AI2.

Regards,
Anke
Reply all
Reply to author
Forward
0 new messages