I am developing a dynamic application generator, so I will need to run a command based on the runtime using Java on the server
From the Android developer site:
Project management from the command line
Creating an APK from the command line
You will need Gradle to build from the command line. After that, you can create the APK as follows:
Window:
> gradlew.bat assembleRelease
Unix:
$ ./gradlew assembleRelease
This creates the .apk file of the Android application as part of the bin / directory project, named -unsigned.apk.
If you can rely on the Android SDK, it's as simple as generating a build.xml file and some properties and calling ant.
You can create an android project using the android command for reference.
ant release team creates release APK
ant release
Source: https://habr.com/ru/post/1386075/More articles:License for MySQL Connector - mysqlHow to print jasper report in Eclipse RCP using print option? - eclipseC #: rounded decimal place to display only when the decimal point is 0 (for example: 3.00 → 3) - decimalExtract data from NamingEnumeration - javaSystem.Net.WebException: Request failed with HTTP status 400: Invalid request. call a web service dynamically - sql-server-2008Diazo only for plone4? - xdvHow to get Jacobian from returned least square () data? - pythonWhy are all application logs written to the uwsgi log? - pythonSetting the culture for the session - asp.netWhat is the maximum sound level - c #All Articles