testAllSystemAppsUsingRuntimePermissionsTargetMncAndAboveSdk

    xiaoxiao2024-11-20  2

    com.google.android.xts.permissions.InitialRuntimePermissionStateTest – testAllSystemAppsUsingRuntimePermissionsTargetMncAndAboveSdk 日志信息如下:

    junit.framework.AssertionFailedError: testAllSystemAppsUsingRuntimePermissionsTargetMncAndAboveSdk errors: Package:com.scores365 uses runtime permissions but doesn't target 23+ SDK -group:android.permission-group.CONTACTS --android.permission.GET_ACCOUNTS -group:android.permission-group.STORAGE --android.permission.WRITE_EXTERNAL_STORAGE --android.permission.READ_EXTERNAL_STORAGE at com.google.android.xts.permissions.InitialRuntimePermissionStateTest.testAllSystemAppsUsingRuntimePermissionsTargetMncAndAboveSdk(InitialRuntimePermissionStateTest.java:101) at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1893)

    这项主要是测试apk的SDK是否兼容到23,我这里是包名为;com.scores365的apkSDK没有兼容到23,将apk兼容到SDK23即可pass,具体修改androidmanifest.xml中

    <uses-sdk android:targetSdkVersion="22" android:minSdkVersion="14" />

    将targetSdkVersion的值改为23即可pass

    转载请注明原文地址: https://ju.6miu.com/read-1293849.html
    最新回复(0)