Hi all,
I am trying to follow the guide Running the development app on device. I intend to run the app on an emulator. This is what I have so far:
# Start the emulator in the background.
$HOME/Library/Android/sdk/emulator/emulator -avd Pixel_3a_API_30 >& /dev/null &
# Wait for the emulator to start
$HOME/Library/Android/sdk/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'
# Check whether we have the latest dmengine.apk
LATEST_SHA1=`curl http://d.defold.com/stable/info.json | jq -r .sha1`
LOCAL_SHA1=`cat android/local_dmengine_sha1.txt`
if [ "$LATEST_SHA1" != "$LOCAL_SHA1" ]
then
echo "Local dmengine.apk out of date, downloading latest"
curl "http://d.defold.com/archive/stable/$LATEST_SHA1/engine/armv7-android/dmengine.apk" --output android/dmengine.apk
echo "$LATEST_SHA1" > android/local_dmengine_sha1.txt
fi
# Install dmengine in the emulator.
$HOME/Library/Android/sdk/platform-tools/adb install "android/dmengine.apk"
This all goes fine, and I can run dmengine happily on the emulator. However, when I open Defold and go to Project -> Target, I do not see anything there but “New Local Engine”.
Is there something I’m missing to enable Defold to see the emulator?
Thanks!