0

私は自分のプロジェクトに Android 用の Detox の実装を開始しました。

しかし、私は問題に遭遇しましたError:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :detox'.

お読みくださいファイルのすべての手順に従ったときに、何が間違っていたのかわかりません。

4

1 に答える 1

0

Detox のバージョンは 7.0.1 で、React Native は 0.48.4 です。

私はそれを動作させることができました

androidTestImplementation(project(path: ":detox")) {
    exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation 'junit:junit:4.12', {
    exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation 'com.android.support.test:runner:1.0.1', {
    exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation 'com.android.support.test:rules:1.0.1', {
    exclude group: 'com.android.support', module: 'support-annotations'
}

また、後ですぐにアプリのクラッシュに遭遇したので、チェックしたところ、react-native run-android または detox test の後にアプリがクラッシュした場合の解決策は、特に gsm などに関するいくつかの依存関係のバージョンです。

于 2018-02-03T11:46:01.293 に答える