-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Detox can't seem to connect to the test app(s)! #4510
Comments
Hey @LibiZiser, could you provide device logs and detox logs? |
@d4vidi
|
@LibiZiser the device logs show the following error:
Are you absolutely sure the app .apk file in Anyways at an overview, Detox tries to launch the app using Android's |
@LibiZiser could you share your dependencies section of |
@d4vidi this is my build.gradle:
} allprojects {
} |
@d4vidi _Are you absolutely sure the app .apk file in android/app/build/outputs/apk/debug/app-debug.apk (path copied from your config) is valid? Does it run on the emulator regardless of Detox?_Yes |
@LibiZiser Sorry, I meant the |
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.0'
}
}
apply plugin: "com.android.application"
apply plugin: "com.facebook.react"
apply from: project(":react-native-config").projectDir.getPath() + "/dotenv.gradle"
/**
* This is the configuration block to customize your React Native Android app.
* By default you don't need to apply any configuration, just uncomment the lines you need.
*/
react {
/* Folders */
// root = file("../")
// reactNativeDir = file("../node_modules/react-native")
// codegenDir = file("../node_modules/@react-native/codegen")
// cliFile = file("../node_modules/react-native/cli.js")
/* Variants */
// debuggableVariants = ["liteDebug", "prodDebug"]
/* Bundling */
// nodeExecutableAndArgs = ["node"]
// bundleCommand = "ram-bundle"
// bundleConfig = file(../rn-cli.config.js)
// bundleAssetName = "MyApplication.android.bundle"
// entryFile = file("../js/MyApplication.android.js")
// extraPackagerArgs = []
/* Hermes Commands */
// hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
// hermesFlags = ["-O", "-output-source-map"]
}
/**
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
*/
def enableProguardInReleaseBuilds = false
/**
* The preferred build flavor of JavaScriptCore (JSC)
*/
def jscFlavor = 'org.webkit:android-jsc:+'
android {
ndkVersion rootProject.ext.ndkVersion
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "com.akeyless"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 49
versionName "1.2.0"
}
signingConfigs {
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
storeFile file(MYAPP_UPLOAD_STORE_FILE)
storePassword MYAPP_UPLOAD_STORE_PASSWORD
keyAlias MYAPP_UPLOAD_KEY_ALIAS
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
}
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
}
dependencies {
implementation("com.facebook.react:react-native")
implementation project(':react-native-fingerprint-scanner')
implementation "com.facebook.conceal:conceal:1.1.3@aar"
implementation "com.madgag.spongycastle:prov:1.56.0.0"
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
exclude group:'com.squareup.okhttp3', module:'okhttp'
}
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
if (hermesEnabled.toBoolean()) {
implementation("com.facebook.react:hermes-android")
} else {
implementation jscFlavor
}
}
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) |
@LibiZiser I don't see Detox here. Are you sure you've followed the setup guide a-z? https://wix.github.io/Detox/docs/introduction/project-setup#step-4-additional-android-configuration |
@LibiZiser ping. LMK whether you've sorted things out or not. |
@d4vidi Not yet, will update |
OK will be happy to hear from you |
What happened?
Running the android app with detox
detox test --configuration android.emu.debug
Received:
I see the app is installed on the android emulator and ot os opened if I click it manually
react native version 0.72.4
What was the expected behaviour?
No response
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version:
React Native version:
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version:
Device model:
Android version:
Test-runner (select one): jest / other
Detox logs
Detox logs
Device logs
Device logs
More data, please!
No response
The text was updated successfully, but these errors were encountered: