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

Ubuntu 16.04.3, can't build debug apk for emulator #472

Closed
biboc opened this issue Dec 21, 2017 · 5 comments
Closed

Ubuntu 16.04.3, can't build debug apk for emulator #472

biboc opened this issue Dec 21, 2017 · 5 comments
Assignees

Comments

@biboc
Copy link

biboc commented Dec 21, 2017

Description

On Ubuntu 16.04.3, I can't build my android app with Detox
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial

And Detox "detox": "^5.10.0"

Steps to Reproduce

RNApp$ detox build --configuration android.emu.debug
pushd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd
/bin/sh: 1: pushd: not found
child_process.js:614
throw err;
^

Could you move from /bin/sh to /bin/bash please if it is not already done

@LeoNatan
Copy link
Contributor

Hmm, this is interesting. Thanks for bringing it to our attention!

@biboc
Copy link
Author

biboc commented Dec 24, 2017

Pushd is not included on /bin/sh on Ubuntu
Have you any idea how to change this to bash interpreter or not used popd(pushd)?

@rotemmiz
Copy link
Member

build is just a convenience method added to detox-cli (read more about it in the docs)
You control this command, it's in your package.json...

Just use cd android instead:
cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug

@biboc
Copy link
Author

biboc commented Dec 24, 2017

Thanks for the answer
Would be nice if the build command is cross-platform

@LeoNatan
Copy link
Contributor

It is. If you want to run your build command in a bash environment, either put it in a shell file with a bash shell or use bash -c.

@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants