On this page
Build an Android app with AI in Apirex by creating an Android project, describing its workflow and connecting your computer. You install the real APK on your phone, refine through chat and prepare a separate signed release for Google Play.
This walkthrough uses a small equipment-loan tracker. Its first useful journey is adding an item, recording a loan and marking it returned. The sample brief describes what to request, not functionality that appears automatically in every project.
What you need
You need an eligible Apirex account, a computer with room for Android tools and an Android phone. Android Studio is optional, not a requirement for the helper's build workflow.
| Item | Why | Notes |
|---|---|---|
| Eligible Apirex account | Create the correct platform project. | Check platform eligibility in your account rather than assuming a particular plan includes it. |
| Computer with internet | Build source on your computer. | Copy the command supplied for your operating system. |
| Free disk space | Store dependencies, source and build output. | The helper checks space before setup and reports shortages; follow the actual message. |
| A terminal kept open | Maintain the helper connection. | Closing it disconnects computer work; run the project command again to reconnect. |
| Real test device | Validate input and the main journey. | Simulator preview is useful for Apple projects; Android testing uses the actual APK on a phone. |
| Your own developer account for release | Distribute under your identity. | Store submission is separate from building and testing; you handle it yourself. |
Decide whether each equipment record represents one unique object or a quantity. That choice affects availability, returns and validation, so resolve it before polishing screens. For an initial local prototype, collect only the information needed to complete the loan journey.
Apirex produces Kotlin and Jetpack Compose in a normal Gradle project. An iPhone version would be a separate project with separate source; screens are not copied automatically. If several platforms later share records, deliberately connect them to the same backend and agree on access rules.
Write the prompt
Name the audience, screens, saved records and one complete journey in your opening prompt. Tell the builder which business rules it must ask about instead of guessing.
Build a native Android equipment-loan tracker in Kotlin and Jetpack Compose for a community workshop. Include an equipment list, item details, a loan form and a return confirmation. Each item has a name, condition note and available or on-loan status. Let me add and edit equipment, record a loan and mark it returned. Start with local sample records clearly distinguished from saved user entries. Show helpful empty states and validation for missing names. Ask me about borrower details, retention, overdue rules, shared access and backend requirements instead of guessing. Propose a focused implementation plan, then test adding, lending and returning an item.Select the Android platform when creating the project and send the brief in chat. Use Chat to resolve questions and Build when you want implementation and computer work. If a proposed plan adds unrelated features, narrow it to the loan journey before continuing.
Agree on what returning an item means and whether an active loan may be edited. A convincing interface can still encode the wrong policy. Write a short acceptance checklist with the actual values you will enter and the result you expect.
Build and install on your phone (USB, download or QR)
Connect your computer, let Android setup finish and install the built APK by USB, as a download from the builder, or by QR link (beta). On Apple Silicon Macs (macOS 13+) the app also opens in Apirex's own Android emulator in the preview today; the Windows version is coming soon.
Open your project on apirex.com and copy its private connection command from the project screen. Run that exact command on the computer that will hold the source. The example below shows a generic illustrative form only; it is not a usable project command.
On macOS or Linux, use the supplied curl command. Windows users copy the version provided for Command Prompt or PowerShell rather than translating shell syntax themselves. Those Windows options do not remove the Mac requirement for Apple builds.
curl -fsSL https://apirex.com/install.sh | sh -s -- connect <your-private-token>Never share the real command or its private token. Hide it in screenshots and support messages, and never run another person's connection command. Keep the terminal open while working; closing it disconnects the computer and pauses computer work. Reconnect by running this project's command again.
Apirex Local Agent is the helper installed by your project command. Its setup checks Node.js 18+ and supplies a private compatible copy when needed, so you need not prepare Node, npm or a global package yourself. Android source goes into an ordinary folder on your computer, where dependencies and builds are handled and checked. AI app builder that runs locally explains this division of work.
For Android setup, the helper downloads Java, the Android SDK and Gradle. Android Studio is not required to build this project. First-time setup can take a while depending on your internet connection; read the setup messages before treating a download delay as a source-code problem.
- For USB installation, find Build number in the phone’s Settings, often under About phone or Software information. Tap it seven times to enable Developer options; manufacturer menus vary.
- Open Developer options and enable USB debugging. Connect a data-capable USB cable, unlock the phone and approve the debugging authorization prompt only for your trusted computer.
- Let Apirex install the APK over USB. If detection fails, inspect cable, authorization and device setup before asking for a source rewrite.
- For QR installation, put the computer and phone on the same Wi-Fi network. Scan the project’s phone-install QR card and download the actual APK.
- The QR link (beta) closes after a short time. Use a fresh link after it closes, or download the APK from the builder instead, and approve installation only for the APK you deliberately built.
Google's ADB documentation explains debugging authorization and querying attached devices. For an optional manual diagnostic, use a separate terminal with the Android SDK platform-tools directory on its command path. This check lists devices; it does not install the app or change the source.
# Use a separate terminal with platform-tools on PATH.
# List attached devices and authorization status.
adb devices
# An unauthorized entry needs approval on the phone.
# Keep the Apirex helper terminal open.An unauthorized entry means debugging access still needs approval on the phone. If nothing appears, follow Google's device troubleshooting instructions rather than assuming the build failed. A cable that charges the phone is not necessarily carrying data.
If you want virtual-device testing, open the generated Gradle project in Android Studio yourself and run it on your own Android Studio virtual device. That optional workflow is separate from the phone-install path. It does not make Android Studio necessary for the helper's initial setup or build.
Refine in chat
Refine Android by describing the screen, observed behavior and expected result in chat. Install the revised build on your phone and repeat the affected journey with real input.
For example: On item details, Return is available even when there is no active loan; disable it until an item is on loan, preserve condition notes and test both states. That request names an observable rule and limits the change. Remove borrower details from any attachment or reproduction example.
Test ordinary, empty and invalid input separately. Add an item with a long name, try saving an empty name, record a loan and return the item. Close and reopen the app to verify the persistence you requested. A clean build does not prove that the records or availability are correct.
Do not rely on preview-element selection for this Android workflow. Describe labels, spacing and behavior in chat, then judge the result on the actual phone. Check readable text, clear control labels and visible validation rather than requesting only cosmetic changes.
Keep each correction narrow enough to understand its effect. Changes are recorded, so review history or revert to an earlier point if a correction introduces a regression. The ordinary project folder can also be opened in an editor and backed up with your own Git workflow.
If you later add shared records, treat backend authorization as part of the feature. Ask who can read or change each record, and verify that rule using realistic accounts. Keep private service keys in backend secrets, not in generated app source.
Prepare for Google Play
Prepare a signed Android App Bundle from the generated Gradle project and submit through your own Play Console account. The debug APK used for phone testing is not the Play release artifact.
- Stabilize the application ID, update the release version and remove misleading sample content. Test the main journey on real devices and confirm the intended backend configuration.
- Configure release signing with your own upload key and protect its backup and passwords. Build a signed AAB; Android Studio is an optional interface for release tooling.
- Create the app record in your own Play Console account. Prepare an accurate listing, actual screenshots, support details and the declarations required for your app’s data use.
- Follow the testing and release tasks shown for your account, upload the bundle and inspect the result before requesting production release or review.
As of November 2026, Google's Play App Signing guidance distinguishes your upload key from the app-signing key used for distributed APKs. Its setup guidance also directs publishers through account-dependent testing tasks. Consult those official instructions and your console rather than relying on a universal tester count or timetable.
Apirex does not sign into Google accounts or submit native apps. Keep Google passwords, signing passwords and the private connection command out of chat. After release, verify the store-delivered build as well; distribution is another stage, not proof that every feature was exercised.
Frequently asked questions
Do I need Android Studio?
No. The helper prepares Java, the Android SDK and Gradle; Android Studio is optional for inspection, release tooling or your own virtual device.
Can I test with an emulator?
You can open the generated project in Android Studio and run your own virtual device. The Apirex walkthrough uses your phone.
Why did the QR link expire?
The QR link is a beta feature and closes after a short time on purpose. Obtain a fresh link and keep phone and computer on the same Wi-Fi, or download the APK from the builder instead.
Does a successful build mean the app is ready?
No. Test real input and failure cases, prepare the signed AAB and complete your Play Console requirements.
All guides
Native foundations
Build with AI
- How to build an Android app with AI
- How to build an iOS app with AI
- How to build an iPad app with AI
- How to build a Mac app with AI
- How to build an app without coding
- Prompts that produce good apps
- Local AI app builder: build apps on your own computer
- How to add payments to your app
- Gradle build failed: common fixes
Google Play
Apple distribution
Build it on your own computer
Describe the app and Apirex writes real source you own, then builds it on your machine.
Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.