In my bash script, I can create my Android Studio project as follows:
#!/bin/bash ./gradlew assembleRelease
This creates a file .apkin the project creation folder, but I do not know the path to this folder inside my script.Is there any way to get it?
.apk
You can add the string 'find' it -
path=`find ./ -name "*.apk"` echo "$path"
If you need an absolute path -
path=`find ./ \`pwd\` . -name "*.apk"` echo "$path"
Source: https://habr.com/ru/post/1570525/More articles:UIWebView Dynamic Content Size - swiftProblems with CFZIP on ColdFusion 11 - coldfusionDelete last list item - javaIndexing a python numpy array. How it works? - pythonLocating output when building an Android project using Gradle via terminal? - androidRails 4, ImageMagick and PaperClip - ruby | fooobar.comChrome.tts.speak character limit - google-chromeВетвь в булевом выражении применяется к каждому элементу итерабельного - pythoninitialize ': rack-test requires a rack application, but none have been given (ArgumentError) - ruby | fooobar.comGiven a set of vertices, how do you create a strongly connected directed graph with an almost minimal number of edges? - c ++All Articles