On Tue, May 20, 2025 at 8:36 AM Nicolas George <geo...@nsup.org> wrote:
>
> Eduardo M KALINOWSKI (HE12025-05-20):
> > You're really making your life much harder by not using Android Studio, but
> > if you really want, here are some pointers (untested):
>
> Making one's life harder on the short term by refusing to use an
> all-integrated monster is usually a good investment.
>
> > - The mentioned packages are available in unstable (and oldstable), but
> > they're very old, so I wouldn't bother.
> > - You can download the platform tools directly from
> > https://developer.android.com/tools/releases/platform-tools , and from there
> > download a SDK.
>
> I have asked the help of an AI a month ago to let me compile a new
> Android app on Debian with pure command line, these are the notes I
> took:
>
> sudo apt-get install google-android-cmdline-tools-19.0-installer 
> google-android-emulator-installer
> sdkmanager "platforms;android-34" "build-tools;34.0.0"
> export ANDROID_HOME=/usr/lib/android-sdk
> export 
> PATH=$PATH:$ANDROID_HOME/cmdline-tools/5.0/bin:$ANDROID_HOME/platform-tools
> sdkmanager "system-images;android-33;google_apis;x86_64"
> avdmanager create avd -n Pixel_7A_x86_64 \
>   -k "system-images;android-33;google_apis;x86_64" \
>   -d pixel_7
> emulator -avd Pixel_7A_x86_64 -no-boot-anim -gpu off

A small nit... You should always set ANDROID_NDK_ROOT and
ANDROID_SDK_ROOT environmental variables when working from the command
line. ANDROID_SDK_HOME used to be another important one.

  * ANDROID_NDK_ROOT -> installation dir of NDK
  * ANDROID_SDK_ROOT -> installation dir of SDK
  * ANDROID_SDK_HOME -> location of SDK-related user files, defaults
to ~/.android/ on Unix.

See <https://groups.google.com/g/android-ndk/c/qZjhOaynHXc/m/2ux2ZZdxy2MJ>.

Jeff

Reply via email to