[英]Why won't circle CI recognise the ./gradlew assemble command?
I am trying to get Circle CI to run an android studio build & generate a release .apk
file. 我正在尝试让Circle CI运行android studio构建并生成发布.apk
文件。
It pulls in the SDK fine but after successfully bringing in the Android-SDK in my circle.yml file, as a dependency... 它可以很好地插入SDK,但是在成功将我的circle.yml文件中引入了Android-SDK作为依赖项之后...
dependencies:
override:
- echo y | android update sdk --no-ui --filter tools,platform-tools,build-tools-26.0.2,android-19,extra-google-m2repository,extra-google-google_play_services,extra-android-support
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
my build fails with a: 我的构建失败并显示:
ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
bash: line 1: ./gradlew: No such file or directory
ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies returned exit code 127
Action failed: ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
What am i doing wrong? 我究竟做错了什么? Why won't the ./gradlew command work? ./gradlew命令为什么不起作用?
Fixed it literally a few seconds after posting: 在发布后几秒钟立即修复了该问题:
./gradlew is a file not a command. ./gradlew是文件而不是命令。 It's actioned when you're in the android
folder. 当您位于 android
文件夹中时,该按钮将起作用。
To make sure I was definitely in android, i put a 为了确保我绝对在android中,我放了一个
general:
build_dir: /android/
at the top 在顶部
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.