com.google.android.gts.placement.CoreGmsAppsTest#testCoreGmsAppsPreloaded fail

来源:互联网 发布:h5工具是什么软件 编辑:程序博客网 时间:2024/06/04 18:25
 GTS 4.0运行时会报如下错误:
 com.google.android.gts.placement.CoreGmsAppsTest#testCoreGmsAppsPreloaded fail junit.framework.AssertionFailedError: Mandatory core GMS packages not found as system apps:

 从报错信息看出系统未检测到Hangout导致测试fail.但这是Google要求,将强制预置App Hangout更换为Duo,所以可以去申请waive

具体分析如下:
testCoreGmsAppsPreloaded case test preloaded mandatory core app list,
 but Duo app has replaced hangouts app from GMS gms-oem-mnc-6.0.1-signed-r10-20161111 and gms-oem-N-7.0-signed-r4-20161111 version on Telephony devices, so case do not find com.google.android.talk app:

com.google.android.gts.placement.CoreGmsAppsTest#testCoreGmsAppsPreloaded fail: junit.framework.AssertionFailedError: Mandatory core GMS packages not found as system apps:
 com.google.android.talk
 at junit.framework.Assert.fail(Assert.java:50)
 at junit.framework.Assert.assertTrue(Assert.java:20)
 at
 com.google.android.gts.placement.CoreGmsAppsTest.checkGeneralCoreGmsAppsPreloaded(CoreGmsAppsTest.java:175)
 at com.google.android.gts.placement.CoreGmsAppsTest.testCoreGmsAppsPreloaded(CoreGmsAppsTest.java:228)
 at java.lang.reflect.Method.invoke(Native Method)
 at junit.framework.TestCase.runTest(TestCase.java:168)
 at junit.framework.TestCase.runBare(TestCase.java:134)
 at junit.framework.TestResult$1.protect(TestResult.java:115)
 at android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77)
 at junit.framework.TestResult.run(TestResult.java:118)
 at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
 at junit.framework.TestCase.run(TestCase.java:124)
 at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
 at android.support.test.internal.runner.junit3.AndroidTestSuite$1.run(AndroidTestSuite.java:97)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
 at java.util.concurrent.FutureTask.run(FutureTask.java:237)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
 at java.lang.Thread.run(Thread.java:761)

0 0