2016-04-21 58 views
1
  • UBUNTU:12.04
  • 的Android CTS:6.0_r5
  • ADB版本:Android的調試橋版本1.0.32(修訂09a0d98bebce-機器人)

在我的目標板上運行CTS測試時,我得到「錯誤同步:超時」,因此不會執行任何測試。我試着用CTS 6.0_r3進行同樣的測試,但結果是一樣的。當我的同事在他的UBUNTU(12.04)上用相同的目標板(這是我的板)運行相同的CTS時,CTS測試就完成了。的Android CTS: 「在同步錯誤:超時」

cts-tf > [email protected]:~/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

我得到了另一種錯誤,然後CTS停止.. [輸入鏈接的描述在這裏(http://stackoverflow.com/questions/37849303/android-cts-execution-stopped-abnormally-on-半) – user2706081

回答

0

自己找到了答案。看起來像是在通過Android Studio更新sdk工具時發生這個問題。

這是我的一步來解決這個問題。 我們假設您在$HOME/android/android_studio中安裝了Android SDK,並安裝了SDK工具$HOME/android/android-sdk-linux

  1. 刪除Android SDK工具。只有
  2. 下載SDK工具從https://developer.android.com/sdk/index.html#Other(直接鏈接:http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
  3. 提取SDK工具$HOME/android/android-sdk-linux一次。
  4. 重新啓動您的Ubuntu。