Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown platform error occurred when running the UTP test suite

When trying to build android app Espresso Instrumentation Tests with circleci Unknown platform error occurred when running the UTP test suite.

Task :app:connectedDebugAndroidTest FAILED

Test results saved as file:/home/circleci/code/app/build/outputs/androidTest-results/connected/test-result.pb. Inspect these results in Android Studio by selecting Run > Import Tests From File from the menu bar and importing test-result.pb.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:connectedDebugAndroidTest'.

There were failing tests. See the report at: file:///home/circleci/code/app/build/reports/androidTests/connected/index.html

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 12s 74 actionable tasks: 1 executed, 73 up-to-date

<-------------> 0% WAITING> IDLEMax tries reached (2)

Exited with code exit status 1

like image 635
RockyGlobal Avatar asked Dec 08 '25 01:12

RockyGlobal


1 Answers

Saw a similar error when running a test on an emulator unrelated to circleci. It was due to lack of storage space. Freeing some memory and retrying fixed it.

like image 187
Jerry Sha Avatar answered Dec 10 '25 19:12

Jerry Sha