tvarchive / optimusTemplate

This is a cucumber jvm implementation template using the optimus mobile automation framework. If you like it, star it, help spread the word.

Home Page:http://docs.testvagrant.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue: Android 8.0 SDK API 26 Failed to Execute - "Cannot read the Android OS version 8.0.0 , is the device valid?? "

asitishere opened this issue · comments

commented

image

0:17:53.952 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] :fragmentationReport FAILED
10:17:53.952 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :fragmentationReport (Thread[Daemon worker Thread 9,5,main]) completed. Took 0.005 secs.
10:17:53.952 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationWorkerRegistry] Worker root.17 completed (0 in use)
10:17:53.952 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker Thread 9,5,main]] finished, busy: 0.413 secs, idle: 0.002 secs
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build completed with 2 failures.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 1: Task failed with an exception.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] -----------
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':runFragmentation'.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Cannot read the Android OS version 8.0.0 , is the device valid??
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ==============================================================================
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2: Task failed with an exception.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] -----------
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':fragmentationReport'.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > java.lang.NullPointerException (no error message)
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ==============================================================================
10:17:53.953 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
10:17:53.953 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED
10:17:53.953 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
10:17:53.953 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] Total time: 1.132 secs

commented

As Android 8 not supported yet, we have to handle the exception on attaching the device.