Build Android Studio app via command line

B. Nadolson :

I want to build an Android Studio app (the Gradle build system), but I want to do this via the command line.

FuegoFro :

Android Studio automatically creates a Gradle wrapper in the root of your project, which is how it invokes Gradle. The wrapper is basically a script that calls through to the actual Gradle binary and allows you to keep Gradle up to date, which makes using version control easier. To run a Gradle command, you can simply use the gradlew script found in the root of your project (or gradlew.bat on Windows) followed by the name of the task you want to run. For instance, to build a debug version of your Android application, you can run ./gradlew assembleDebug from the root of your repository. In a default project setup, the resulting apk can then be found in app/build/outputs/apk/app-debug.apk. On a *nix machine, you can also just run find . -name '*.apk' to find it, if it's not there.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Build Android app in command-line with Android Studio on Mac

分類Dev

Build Android app in command-line with Android Studio on Mac

分類Dev

Build Android app in command-line with Android Studio on Mac

分類Dev

Android Studio build works, Gradle command line fails

分類Dev

Visual Studio command line build arguments

分類Dev

How can I check for Visual Studio updates via the command line?

分類Dev

Compiling & linking a Swift/Objective-C++ app via the command line

分類Dev

Using Android-NDK in Android Studio Build command fail

分類Dev

Gradle build-info.xml not found for module app in Android Studio

分類Dev

Android Studio Fails to Build Without Cast, But App Crashes With Cast

分類Dev

Basic network via command line

分類Dev

Music Organization via command line?

分類Dev

Why am I not able to build Vim with Visual Studio 2015 RC command line tools?

分類Dev

Flutter App won't build appbundle/APK or run on Android after android studio 3.5

分類Dev

BUILD FAILED in 3s Command: D:\Flutter\myfarmer\android\gradlew.bat app:properties

分類Dev

Configuring HDMI Audio via command line

分類Dev

Running LaTeX via command line on Ubuntu server

分類Dev

Compressing folders with password via command line

分類Dev

Hiding specific desktop item via command line

分類Dev

Can't pass values via command line

分類Dev

Beyond Compare - via command Line : Spaces in FilePath

分類Dev

Sending HTTP request via command line and curl

分類Dev

Android Studio Build Gradle OutOfMemoryError

分類Dev

download build tools for Android studio

分類Dev

Build of Wikipedia Android app fails

分類Dev

Is it possible to build an App Bundle using an already release signed APK, in Android Studio? I want to migrate apk to app bundle for play store

分類Dev

Facebook authentication via android app

分類Dev

xcode command line app - where is the executable code?

分類Dev

android studio: error running app

Related 関連記事

  1. 1

    Build Android app in command-line with Android Studio on Mac

  2. 2

    Build Android app in command-line with Android Studio on Mac

  3. 3

    Build Android app in command-line with Android Studio on Mac

  4. 4

    Android Studio build works, Gradle command line fails

  5. 5

    Visual Studio command line build arguments

  6. 6

    How can I check for Visual Studio updates via the command line?

  7. 7

    Compiling & linking a Swift/Objective-C++ app via the command line

  8. 8

    Using Android-NDK in Android Studio Build command fail

  9. 9

    Gradle build-info.xml not found for module app in Android Studio

  10. 10

    Android Studio Fails to Build Without Cast, But App Crashes With Cast

  11. 11

    Basic network via command line

  12. 12

    Music Organization via command line?

  13. 13

    Why am I not able to build Vim with Visual Studio 2015 RC command line tools?

  14. 14

    Flutter App won't build appbundle/APK or run on Android after android studio 3.5

  15. 15

    BUILD FAILED in 3s Command: D:\Flutter\myfarmer\android\gradlew.bat app:properties

  16. 16

    Configuring HDMI Audio via command line

  17. 17

    Running LaTeX via command line on Ubuntu server

  18. 18

    Compressing folders with password via command line

  19. 19

    Hiding specific desktop item via command line

  20. 20

    Can't pass values via command line

  21. 21

    Beyond Compare - via command Line : Spaces in FilePath

  22. 22

    Sending HTTP request via command line and curl

  23. 23

    Android Studio Build Gradle OutOfMemoryError

  24. 24

    download build tools for Android studio

  25. 25

    Build of Wikipedia Android app fails

  26. 26

    Is it possible to build an App Bundle using an already release signed APK, in Android Studio? I want to migrate apk to app bundle for play store

  27. 27

    Facebook authentication via android app

  28. 28

    xcode command line app - where is the executable code?

  29. 29

    android studio: error running app

ホットタグ

アーカイブ