Is it possible to build an APK file (outside the studio) via the terminal (Linux) from the sources of the Android Studio project?

  • one
    "...And if so, how?" after all? - D-side
  • Of course you can, there is also a Gradle project. You can execute the command in the console ./gradlew will start downloading any, and then ./gradlew and the name of the task to build apk - Vlad Vetrov
  • @ D-side You're right - Danil
  • you are hardly interested in the literal answer to your question. Please reformulate the question text (by clicking edit below the question text) so that it can be answered fully - aleksandr barakin

1 answer 1

Yes you can. Gradle to help you

  1. Install the gradle
  2. Writing the build.gradle file - fortunately it's pretty simple
  3. From the console, run gradle (assuming that the build.gradle file is in the current directory build.gradle
  4. Profit