Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run detox build command on Android #1537

Closed
sanjeevyadavIT opened this issue Jul 17, 2019 · 2 comments
Closed

Unable to run detox build command on Android #1537

sanjeevyadavIT opened this issue Jul 17, 2019 · 2 comments

Comments

@sanjeevyadavIT
Copy link

Hi I am trying to use Detox on Android using jest, I followed the Android installation guide, but I am getting error

$ detox build -c android.emu.debug
detox[28918] INFO:  [build.js] cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:preDebugAndroidTestBuild'.
> Could not resolve all task dependencies for configuration ':app:debugAndroidTestRuntimeClasspath'.
   > Could not resolve androidx.annotation:annotation:{strictly 1.0.0}.
     Required by:
         project :app
      > Cannot find a version of 'androidx.annotation:annotation' that satisfies the version constraints: 
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.annotation:annotation:1.1.0'
           Constraint path 'e2e:app:unspecified' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test:runner:1.1.1' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test.ext:junit:1.1.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test:runner:1.1.1' --> 'androidx.test:monitor:1.1.1' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test.ext:junit:1.1.0' --> 'androidx.test:core:1.1.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.collection:collection:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.cursoradapter:cursoradapter:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable:1.0.1' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test.ext:junit:1.1.0' --> 'androidx.test:core:1.1.0' --> 'androidx.lifecycle:lifecycle-common:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.versionedparcelable:versionedparcelable:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.documentfile:documentfile:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.print:print:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.lifecycle:lifecycle-viewmodel:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0' --> 'androidx.arch.core:core-common:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.customview:customview:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.viewpager:viewpager:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.coordinatorlayout:coordinatorlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.drawerlayout:drawerlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.slidingpanelayout:slidingpanelayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.interpolator:interpolator:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.lifecycle:lifecycle-livedata:2.0.0' --> 'androidx.arch.core:core-runtime:2.0.0' --> 'androidx.annotation:annotation:1.0.0'

   > Could not resolve androidx.annotation:annotation:1.1.0.
     Required by:
         project :app > com.wix:detox:13.1.1
      > Cannot find a version of 'androidx.annotation:annotation' that satisfies the version constraints: 
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.annotation:annotation:1.1.0'
           Constraint path 'e2e:app:unspecified' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test:runner:1.1.1' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test.ext:junit:1.1.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test:runner:1.1.1' --> 'androidx.test:monitor:1.1.1' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test.ext:junit:1.1.0' --> 'androidx.test:core:1.1.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.collection:collection:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.cursoradapter:cursoradapter:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable:1.0.1' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test.ext:junit:1.1.0' --> 'androidx.test:core:1.1.0' --> 'androidx.lifecycle:lifecycle-common:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.versionedparcelable:versionedparcelable:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.documentfile:documentfile:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.print:print:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.lifecycle:lifecycle-viewmodel:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0' --> 'androidx.arch.core:core-common:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.customview:customview:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.viewpager:viewpager:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.coordinatorlayout:coordinatorlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.drawerlayout:drawerlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.slidingpanelayout:slidingpanelayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.interpolator:interpolator:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.lifecycle:lifecycle-livedata:2.0.0' --> 'androidx.arch.core:core-runtime:2.0.0' --> 'androidx.annotation:annotation:1.0.0'

   > Could not resolve androidx.annotation:annotation:1.0.0.
     Required by:
         project :app > com.wix:detox:13.1.1 > androidx.test:runner:1.1.1
         project :app > com.wix:detox:13.1.1 > androidx.test.ext:junit:1.1.0
         project :app > androidx.appcompat:appcompat:1.0.2
         project :app > com.wix:detox:13.1.1 > androidx.test:runner:1.1.1 > androidx.test:monitor:1.1.1
         project :app > com.wix:detox:13.1.1 > androidx.test.ext:junit:1.1.0 > androidx.test:core:1.1.0
         project :app > androidx.core:core:1.0.1
         project :app > androidx.collection:collection:1.0.0
         project :app > androidx.cursoradapter:cursoradapter:1.0.0
         project :app > androidx.legacy:legacy-support-core-utils:1.0.0
         project :app > androidx.fragment:fragment:1.0.0
         project :app > androidx.vectordrawable:vectordrawable:1.0.1
         project :app > androidx.lifecycle:lifecycle-common:2.0.0
         project :app > androidx.lifecycle:lifecycle-runtime:2.0.0
         project :app > androidx.versionedparcelable:versionedparcelable:1.0.0
         project :app > androidx.documentfile:documentfile:1.0.0
         project :app > androidx.loader:loader:1.0.0
         project :app > androidx.localbroadcastmanager:localbroadcastmanager:1.0.0
         project :app > androidx.print:print:1.0.0
         project :app > androidx.legacy:legacy-support-core-ui:1.0.0
         project :app > androidx.lifecycle:lifecycle-viewmodel:2.0.0
         project :app > androidx.arch.core:core-common:2.0.0
         project :app > androidx.customview:customview:1.0.0
         project :app > androidx.viewpager:viewpager:1.0.0
         project :app > androidx.coordinatorlayout:coordinatorlayout:1.0.0
         project :app > androidx.drawerlayout:drawerlayout:1.0.0
         project :app > androidx.slidingpanelayout:slidingpanelayout:1.0.0
         project :app > androidx.interpolator:interpolator:1.0.0
         project :app > androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
         project :app > androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
         project :app > androidx.arch.core:core-runtime:2.0.0
      > Cannot find a version of 'androidx.annotation:annotation' that satisfies the version constraints: 
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.annotation:annotation:1.1.0'
           Constraint path 'e2e:app:unspecified' --> 'androidx.annotation:annotation:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test:runner:1.1.1' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test.ext:junit:1.1.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test:runner:1.1.1' --> 'androidx.test:monitor:1.1.1' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test.ext:junit:1.1.0' --> 'androidx.test:core:1.1.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.collection:collection:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.cursoradapter:cursoradapter:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable:1.0.1' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.wix:detox:13.1.1' --> 'androidx.test.ext:junit:1.1.0' --> 'androidx.test:core:1.1.0' --> 'androidx.lifecycle:lifecycle-common:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.versionedparcelable:versionedparcelable:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.documentfile:documentfile:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.print:print:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.lifecycle:lifecycle-viewmodel:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0' --> 'androidx.arch.core:core-common:2.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.customview:customview:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.viewpager:viewpager:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.coordinatorlayout:coordinatorlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.drawerlayout:drawerlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.slidingpanelayout:slidingpanelayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.interpolator:interpolator:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0' --> 'androidx.annotation:annotation:1.0.0'
           Dependency path 'e2e:app:unspecified' --> 'com.facebook.react:react-native:0.60.3' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.lifecycle:lifecycle-livedata:2.0.0' --> 'androidx.arch.core:core-runtime:2.0.0' --> 'androidx.annotation:annotation:1.0.0'


* 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 2s
detox[28918] ERROR: [cli.js] Error: Command failed: cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..

This is my package.json file

{
  "name": "e2e",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint .js **/*.js"
  },
  "dependencies": {
    "react": "16.8.6",
    "react-native": "0.60.3"
  },
  "devDependencies": {
    "@babel/core": "^7.5.4",
    "@babel/runtime": "^7.5.4",
    "@react-native-community/eslint-config": "^0.0.5",
    "babel-jest": "^24.8.0",
    "eslint": "^6.0.1",
    "eslint-config-airbnb": "^17.1.1",
    "eslint-plugin-import": "^2.18.0",
    "eslint-plugin-jsx-a11y": "^6.2.3",
    "eslint-plugin-react": "^7.14.2",
    "jest": "^24.8.0",
    "metro-react-native-babel-preset": "^0.55.0",
    "react-test-renderer": "16.8.6"
  },
  "jest": {
    "preset": "react-native"
  },
  "detox": {
    "configurations": {
      "android.emu.debug": {
        "binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
        "build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
        "type": "android.emulator",
        "name": "Nexus_5X_API_28_x86"
      },
      "android.emu.release": {
        "binaryPath": "android/app/build/outputs/apk/release/app-release.apk",
        "build": "cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..",
        "type": "android.emulator",
        "name": "Nexus_5X_API_28_x86"
      }
    },
    "test-runner": "jest"
  }
}
@support
Copy link

support bot commented Jul 17, 2019

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.

Feel free to post your Stack Overflow question here for more visility. We'll take a look at it.

For more information on bots in this reporsitory, read this discussion.

@support support bot closed this as completed Jul 17, 2019
@sanjeevyadavIT sanjeevyadavIT changed the title Unable to run detox build command Unable to run detox build command on Android Jul 17, 2019
@sanjeevyadavIT
Copy link
Author

sanjeevyadavIT commented Jul 17, 2019

PROBLEM SOLVED, need to add androidx.annotation:annotation:1.1.0 this dependency in my app
(I am using project setup by react-native-cli)

Steps

  1. In your app/build.gradle file add this dependency
dependencies {
    implementation "androidx.annotation:annotation:1.1.0"
}
  1. Increment the minimum sdk version support to 18, goto your project level build.gradle file
buildscript {
    ext {
        minSdkVersion = 18
    }
}

@lock lock bot locked as resolved and limited conversation to collaborators Jul 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant