0
votes

I want to build aar files but I dont have Android Studio as my computer cannot run it.

How to build it from command line using the raw build tools; no gradle included?

The steps to build apk are:

  1. generate R.java file with (aapt).
  2. compile src files including R.java with (javac)
  3. dex classes with (dx)
  4. package, sign, align.

I understand that aar manifest(s) are not compiled to binary format. Thus the first step may not work when creating aar libs.

Please, I am begging, how to, the steps to creating with the build tools.

1

1 Answers

0
votes

./gradlew <moduleName>:bundle<build_variant>Aar

//for example

./gradlew app:bundleReleaseAar