加入依赖
implementation 'androidx.test.uiautomator:uiautomator:2.2.0'
创建CalcActivity页
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
文章来源地址https://uudwc.com/A/odbvx
文章来源:https://uudwc.com/A/odbvx