Running an app built against SDK level 27 on Android P somewhat unpredictably displays the following dialog (the dialog title is the name of the application):
Detected problems with API compatibility (visit g.co/dev/appcompat for more info)
The URL leads to this page about restrictions on non-SDK interfaces. My application doesn't use reflection itself, but it does use Gson.
There are no immediately obvious log messages in Logcat, except may messages such as:
Accessing hidden field Landroid/widget/AbsListView;->mIsChildViewEnabled:Z (light greylist, reflection)