原生接口报错
https://github.com/openatx/android-uiautomator-server/blob/master/app/src/androidTest/java/com/github/uiautomator/stub/DeviceInfo.java#L51
如下3行安卓java代码:
import androidx.test.uiautomator.UiDevice;
UiDevice ud = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
this._currentPackageName = ud.getCurrentPackageName();