无法解决项目:排毒
Could not resolve project :detox
我刚刚开始为我的项目 android 实施 Detox。
但是,我 运行 进入 Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :detox'.
的问题
当我按照自述文件中的所有步骤进行操作时,我不确定自己做错了什么。
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 运行-android 或排毒测试后崩溃的解决方案是一些依赖版本,尤其是关于 gsm 等。
我刚刚开始为我的项目 android 实施 Detox。
但是,我 运行 进入 Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :detox'.
当我按照自述文件中的所有步骤进行操作时,我不确定自己做错了什么。
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 运行-android 或排毒测试后崩溃的解决方案是一些依赖版本,尤其是关于 gsm 等。