在我的目标板上运行CTS测试时,我得到了#34;错误同步:超时"所以没有执行任何测试。我尝试使用CTS 6.0_r3进行相同的测试,但结果是一样的。
顺便说一句,当我的同事在他的UBUNTU(12.04)上使用相同的目标板(即我的板)运行相同的CTS时,CTS测试就完成了。cts-tf > albertc@albertc-UBUNTU:~/android/android-cts$ ./tools/cts-tradefed
Android CTS 6.0_r5 build:2736048
04-21 12:30:26 I/DeviceManager: Detected new device 16419d187100000006fe82c0
cts-tf > run cts -c android.hardware.camera2.cts.StaticMetadataTest --skip-media-download --skip-preconditions
04-21 12:30:41 I/TestInvocation: Starting invocation for 'cts' on build '2736048' on device 16419d187100000006fe82c0
04-21 12:30:41 I/16419d187100000006fe82c0: Created result dir 2016.04.21_12.30.41
04-21 12:30:41 I/CtsTest: ABIs: [armeabi-v7a, arm64-v8a]
04-21 12:30:46 I/16419d187100000006fe82c0: Collecting device info
04-21 12:31:18 E/Device: Error during Sync: timeout.
04-21 12:31:58 I/16419d187100000006fe82c0: -----------------------------------------
04-21 12:31:58 I/16419d187100000006fe82c0: Test package arm64-v8a android.camera started
04-21 12:31:58 I/16419d187100000006fe82c0: -----------------------------------------
04-21 12:31:58 I/16419d187100000006fe82c0: arm64-v8a android.camera package complete: Passed 0, Failed 0, Not Executed 5
04-21 12:31:58 I/16419d187100000006fe82c0: -----------------------------------------
04-21 12:31:58 I/16419d187100000006fe82c0: Test package armeabi-v7a android.camera started
04-21 12:31:58 I/16419d187100000006fe82c0: -----------------------------------------
04-21 12:31:58 I/16419d187100000006fe82c0: Saved log device_logcat_7656355222403074253.zip
04-21 12:31:58 I/16419d187100000006fe82c0: Saved log host_log_3771779795412712371.zip
04-21 12:31:58 I/16419d187100000006fe82c0: armeabi-v7a android.camera package complete: Passed 0, Failed 0, Not Executed 5
04-21 12:31:58 I/16419d187100000006fe82c0: Created xml report file at file:///home/albertc/WorkSpace/android/android-cts/./tools/../../android-cts/repository/results/2016.04.21_12.30.41/testResult.xml
04-21 12:31:58 I/16419d187100000006fe82c0: XML test result file generated at 2016.04.21_12.30.41. Passed 0, Failed 0, Not Executed 10
04-21 12:31:58 I/16419d187100000006fe82c0: Time: 1m 17s
答案 0 :(得分:0)
自己找到答案。看起来这个问题在通过Android studio更新sdk工具时发生。
这是我解决此问题的步骤。
我们假设您在$HOME/android/android_studio
中安装了Android SDK并安装了SDK工具$HOME/android/android-sdk-linux
。
$HOME/android/android-sdk-linux
。