Build, run & install

Ask your Agents for an Android app or a PocketJS game for PSP, PS Vita and Nintendo 3DS, try it in Preview, download the APK, and choose the app's Google Play upload key.

Besides its iPhone app, a project can have an Android app, a PocketJS app for handhelds (PSP, PS Vita and Nintendo 3DS), or both. Your Agents make and build them. You try them in Preview, and for Android you choose the key the app is signed with.

Ask for an Android or PocketJS version

  1. Open the project’s chat.
  2. Ask an Agent for what you want, for example “Make an Android version of this app” or “Make a PocketJS version of this game for PSP and PS Vita”.
  3. The Agent writes the app and builds it. When the build is done, open Preview to try it.

Where the build runs depends on your Team:

Cloud Team Local Team
Android In the cloud. Not available.
PocketJS In your Team’s environment. On your Mac, in a copy of the project. Nothing is written back to your folder. If a tool the build needs isn’t installed on your Mac, the build’s output says how to install it.

Agents build each kind with runbuild --platform android_beta or runbuild --platform pocketjs_beta. See runbuild for what each build makes.

Try the Android app

  1. Open Preview and open the device menu (tap or click the device name).
  2. Under Android Beta, pick an Android phone. On the Mac, Android Beta shows once the project has an Android app.
  3. Use the phone as in Run your app in Preview. Android phones also have Back.

If the project has no Android app yet, the phone’s row says “No Android build yet”. Pressing Restart App (or Reinstall) there shows No Android build yet: “Ask an agent to build the Android app, then you can install it here.” Tap Ask an Agent to Build to post “Build this project’s Android app for Android Preview.” in the project’s chat, as your message. It works the same the other way round: on a Preview iPhone, a project with only an Android app shows “No iOS build yet”.

When a project has both apps, the name of Restart App and Reinstall says which one it acts on, for example “Restart App (Android)”. It’s always the app for the device on screen.

Download the APK

The ⋯ menu of Preview has Download APK when the project has an Android app: on iPhone and iPad under Restart App, on the Mac first in the menu. While it downloads, the row says Downloading APK…. Then the share sheet opens, where you can save the file or send it. The APK is the same build the Preview phone runs, signed with the app’s key.

Choose the app’s upload key for Google Play

Each Android app in a Team has one signing key. It signs every build: the build for the Preview phone, the APK you download, and the release builds for Google Play. AirBuild makes this key on the app’s first build.

Google Play accepts updates to an app only when they’re signed with the key the app already uses. AirBuild doesn’t connect to Google Play, so it can’t tell whether your app is already there:

  • The app has never been on Google Play: the key AirBuild made, or a new one, is fine.
  • The app is already on Google Play: give AirBuild the keystore you sign it with. You can do it before the first build or afterwards. A key that’s replaced is kept, not deleted.

When an Agent needs to know which key to use, it posts a Choose the upload key for Google Play card in the chat with the app’s package name and “Google Play only accepts updates signed with the key this app already uses. Upload that keystore, or create a new key if the app has never been on Google Play.” Anyone in the Team can answer it.

Upload your keystore

  1. On the card, tap Upload Keystore.
  2. In the Upload Keystore sheet, tap Choose Keystore File… and pick the file: “The keystore this app already uses on Google Play: a .jks, .keystore or .p12 file.” To pick a different one, tap Choose Another File….
  3. Type the Keystore Password. “AirBuild checks the keystore and keeps its key to sign this app’s release builds. The password is used once and never stored.”
  4. Tap Upload.

The card then says “Upload key added, SHA-256 …” with the start of the certificate’s fingerprint. You can compare it with the upload key certificate in Google Play Console.

Create a new key

Only for an app that has never been on Google Play. On the card, tap Create New Key. AirBuild makes the key right away, and the card says “A new upload key signs this app”.

After you answer

Either way, the Agent is told the key is ready and goes on. You can also send the keystore to an Agent in the chat, or ask for a new key in words; the Agent uses the android-key command. See android-key, which also covers restoring an earlier key and exporting one. To ask for a copy of the key or go back to an earlier one, see Get a copy of your Android upload key, or go back to an earlier one.

When you move the project to another Team, its upload keys move with it.

Try the PocketJS app

  1. Open Preview and open the device menu.
  2. Under PocketJS Beta, pick PSP, PS Vita or Nintendo 3DS.
  3. Play on the handheld’s screen.

While it gets ready, the screen says Loading… or Starting Environment…. Before the first build it says “The app appears here after its first build.” If the project has no PocketJS app, it says “This project has no PocketJS app yet. Ask the Agent to make one.” If the build wasn’t made for the handheld you picked, it says “This build was not made for the handheld.” Ask an Agent to build it for that handheld too.

When an Agent makes a newer build, a notice says “A new build is ready.” The game you’re playing isn’t swapped out: tap Reload to start the new build.

Tool What it does
Screenshot Puts a picture of the screen in the chat’s message box, so you can send it to your Agents.
Restart App Starts the game again.
Enter Full Screen Shows the handheld on its own. Exit Full Screen brings the chat back.

Press the buttons on the handheld, or use a keyboard:

Key Button
Arrow keys D-pad
X Cross
Z Circle
C Square
V Triangle
Space or Return Start
Tab Select
Q Left shoulder
E Right shoulder

AirBuild has no way to put the game on a real handheld.

Questions

When an upload on the card doesn’t work, the card stays open so you can try again:

What you see What to do
“This keystore uses the old JKS format, which isn’t supported. Convert it with “keytool -importkeystore -srckeystore upload.jks -destkeystore upload.p12 -deststoretype pkcs12”, or export the key again from Android Studio, then upload the new file.” Convert the keystore with the command below, then upload the .p12 file.
“That password doesn’t open this keystore. Check it and try again.” Type the keystore’s password again.
“This file isn’t a keystore AirBuild can read. Choose the .p12, .jks or .keystore file the app is signed with.” or “This file can’t be read as a keystore. Choose the .jks, .keystore or .p12 file the app is signed with.” Pick the keystore file the app is signed with.
“This keystore holds more than one key. Export only the key you sign this app with into a keystore of its own, then upload that.” Export just that key to a new keystore and upload it.
“The key in this keystore doesn’t match its certificate. Export the key you sign this app with again, then upload that.” Export the key again and upload the new file.
“This file is too large to be a keystore. Choose the .p12, .jks or .keystore file the app is signed with.” You picked another kind of file. Pick the keystore.
“Unable to upload the keystore. Check your connection and try again.” Check that you’re online and tap Upload again.
“This answer can’t be sent. Update AirBuild and try again.” Update AirBuild.

To convert an old JKS keystore to PKCS#12:

Terminal window
keytool -importkeystore -srckeystore upload.jks -destkeystore upload.p12 -deststoretype pkcs12
Moving the project says the other Team already has a different Android upload key.
The message reads “Team already has a different Android upload key for package, and Google Play accepts only one, so the app was not moved. It is still on Team.” The Team you’re moving to already holds another key for the same app. The project stays where it is.
There's no Android Beta in Preview's device menu.
Android apps build in cloud Teams only, so a local Team has no Android Beta. On iPhone and iPad, the kinds of app your project doesn’t build are in a submenu; on the Mac they’re left out until the project has that kind of app.
Download APK shows a message instead of a file.
“Couldn’t download APK. Try again.” Try again. If the project has never built its Android app, ask an Agent to build it first.
How do I get a build to upload to Google Play?
Ask an Agent for a signed release build. AirBuild doesn’t upload it to Google Play for you, and the app has no button for the release file: ask the Agent that made it to get it to you.
The PocketJS screen says the app could not be loaded.
“The app could not be loaded.” or “The app stopped with an error.” Tap Try Again. If it happens again, tell your Agents in the chat what you see so they can fix the game.