Please link for download?
Please
see the first post in this message thread. It has been updated with the latest procedure.
but avd manager not start, run with command line
I just tested the following and it worked:
Installing and Using the Android Emulator:(the method described here uses the command line, another method is to install
Android Studio)
#Install the emulator and a system image
cd "$HOME/android/sdk/cmdline-tools/tools/bin"
./sdkmanager "emulator" "system-images;android-24;default;armeabi-v7a"
#(to get a list of system images use ./sdkmanager --list)
#Create an android virtual devices (AVD)
#(this particular device will work with 32-bit only)
./avdmanager create avd -n "my_test_device" -k "system-images;android-24;default;armeabi-v7a"
#(to get a list of devices use ./avdmanager list devices)
#(after creation, AVD files are stored in: ~/.android/avd/)
#Run the emulator
cd "$HOME/android/sdk/emulator"
./emulator -avd "my_test_device"
# (to get a list of available AVDs, use ./emulator -list-avds)
For my test, I ran the emulator first. Once the emulator is running, then from the Lazarus IDE menu select Run | [LAMW] Build Android Apk and Run
Added notes on emulator testing:Testing in VirtualBox (enabled nested virtualization and 3D video)
General Warning: Do not run the Android emulator as a "nested" virtual machine within another VM environment. It can be done, but it has issues.
If running inside a virtual machine, software rendering may be required. Run the emulator with -gpu swiftshader_indirect.
More info here.
(Despite the warning above, this was tested in my VirtualBox AMD64 Linux VM)
This worked for testing 32-bit ARM APKs:
system-images;android-24;default;armeabi-v7a
./emulator -avd "my_test_device"
(in my current setup, this test did not require -gpu swiftshader_indirect)
Emulator images that are native arm64-v8a are so slow I haven't gotten them to boot.
For API 30 and later
the x86 emulators emulate ARM when running on x86_64 host platform (reportedly 10 times faster than the native ARM emulators)
32-bit ARM APK works with system-images;android-30;google_apis;x86
32-bit and 64-bit APK works with system-images;android-30;google_apis;x86_64
./emulator -avd "api30-x86-device" -no-snapshot-load -gpu swiftshader_indirect
./emulator -avd "api30-x86_64-device" -no-snapshot-load -gpu swiftshader_indirect
For my testing with these two system images, the Android back and home buttons don't work and some system apps crash. (e.g. Settings)