Fire: Cooper-Android builds .aab and .apks, but both Run commands are disabled for a booted emulator

I thought I’d see what codebot could do to make an app run on android and whilst it has build the initial app I asked it to, I can’t get it to run, so I asked it to give me a summary of the issues. I’m using latest Fire build .3157. This is what it says:

I’m trying to run an Oxygene Android app from Fire on macOS. The active project is TowerVisit.Android, configuration Debug, target Cooper-Android. I’ve selected a Pixel 10 Pro XL running Android 17. Local CrossBox is connected and reports the emulator as booted and deployable.

Expected: As described in Elements Documentation → Debugging Android SDK Apps, selecting the emulator and pressing ⌘R should build, deploy and launch the app.

Actual: Both Run in Debugger and Run Without Debugging are disabled, even after reselecting the emulator. Fire reports zero active debugger sessions. Deploy Without Running was available, but when I tried it, Fire stayed at Deploying/Preparing. The emulator remained on its home screen. Trying to stop that operation produced:

Debugger action 'stop' failed with an error:
The debug engine is unavailable.

Copy · Paste this code into the editor

That error appeared on Stop, not at the start of deployment. I haven’t confirmed that the app was installed, and there’s no application crash or debugger output.

What I’ve checked:

  • The Android project builds successfully and produces Bin/Debug/towervisit.android.aab and towervisit.android.apks. The only compiler warning is W28 for the obsolete Activity.onBackPressed().
  • The project imports RemObjects.Elements.Cooper.Android.targets, sets SDK=android-37.0 and DeploymentTargetVersion=21, and has GenerateAPKs=True in Debug.
  • The manifest declares towervisit.android/.MainActivity as exported, with MAIN and LAUNCHER.
  • OutputType=Library matches the RemObjects Oxygene Android HelloWorld sample. I also tried the sample’s explicit StartMode=Project in Debug; the build still passed and both Run commands remained disabled.

What does Fire check when deciding whether to enable Run for a Cooper-Android project? Is there a project setting or Android tooling requirement I’m missing, and which Fire or CrossBox log would show why Run is disabled or where deployment is stopping?

Make sure you have build .apk enabled. (i’m surprised Deploy doesn’t change that too, that’s probably why it fails. I’ll improve all parts of this).

of I asked AI too :slight_smile:

Note that GenerateAPKs and GenerateAPK are two different settings. Yes, Google has two packaging formats, one called .apks and one older one called .apk; apks is needed ot deploy to Play, but ONLY .apk can be installed locally. (There’s also .aab as a third format. Because why not)

I’m guessing someone at Google thought, “hey, we should be more like Microsoft!”