Android 状态栏下方的黑条。它是什么?

Android black bar below status bar. What is it?

Android 7.0 安装我的应用程序和 hockeyapp 应用程序后,状态栏下出现奇怪的黑条。它做了什么?如何解决?

听起来你指的是三星 S8 设备。

在清单的应用程序标签内,尝试添加最大宽高比的元数据。

<application ....
     ....  >
    <meta-data android:name="android.max_aspect" android:value="5.0"/>
    ....
    ....
</application>

Most devices have rectangular screens whose width is fairly close to their height, ranging from the 4:3 ratio of a traditional television screen to the now-common 16:9 ratio. However, in some situations an app might run on a device with a more extreme aspect ratio.

An app can declare the maximum aspect ratio it is able to support. If the app runs on a device with a more extreme aspect ratio, the system automatically letterboxes the app, leaving portions of the screen unused so the app can run at its specified maximum aspect ratio.

Samsung S8 具有这些 "extreme" 宽高比之一,因此必须指定您支持它们。为什么这不是默认的,我不知道

如果你的目标是 API 24 岁及以上,你应该能够克服这个问题。否则,请尝试将最大宽高比设置为大于建议的最小值 2.1。

Note: You do not need to set a maximum aspect ratio if an activity's android:resizeableActivity attribute is set to true. If your app targets API level 24 or higher, this attribute defaults to true. For more information, see Configuring your app for multi-window mode

Android documentation about the issue can be found here