Open ahna92 opened 2 years ago
In your tests is the .apk file defined as bs://UPLOAD_APP_HASH_ID?
hi @bs-ashwanipathak
i'm using this script file
{
"devices": ["Samsung Galaxy S9 Plus-9.0"],
"project": "My project",
"shards": {
"numberOfShards": 2
}
}
and these gradle configs
browserStackConfig {
username = browserStackUserName
accessKey = browserStackAccessKey
configFilePath = "browserStackConfig.json"
}
I am getting the similar issue as well. Running below command in Android Studio terminal. Running ./gradlew clean executeDemoDevDebugTestsOnBrowserstack gives error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:executeDemoDevDebugTestsOnBrowserstack'.
> java.io.IOException: unable to find DebugApp apk
Most recent DebugApp apk: null
Is there any workaround for this ?
Hi Kanika,
Currently BrowserStack only takes apk whose name is ending with -android
I also found this open thread with more details - https://github.com/browserstack/browserstack-gradle-plugin/issues/40
This #40 helped. I commented out app renaming and it worked. Thanks @bhumikababbar
Issue
OS : MAC MacBook Pro Chip: Apple M1 Pro CLI : 3.1.0
When trying to use this command
./gradlew app:executeDebugTestsOnBrowserstack
always facing this errorbut when checking
build/outputs/apk/debug
andbuild/outputs/apk/androidTest/debug
i can see the apksalso in the pipeline (linux) command working fine