Android CLI: Build Android apps 3x faster using any agent

(android-developers.googleblog.com)

208 points | by ingve 12 hours ago

19 comments

  • anabis 4 hours ago
    The install command shown for Windows is 404.

    `curl -fsSL https://dl.google.com/android/cli/latest/windows_x86_64/inst... | bash`

    The URL shown for individual OSs work, but the script errors for me.

    `curl.exe -fsSL https://dl.google.com/android/cli/latest/windows_x86_64/inst... -o "%TEMP%\i.cmd" && "%TEMP%\i.cmd"`

    I manually downloaded the exe, but it say socket error. vibe coding is going strong!

    • throwa356262 2 hours ago
      Goggles Android tooling has been like this forever, nothing to do with AI.
    • anabis 1 hour ago
      I got a workaround a la GH Copilot:

      <pre>

      > android skills list

      Picked up JAVA_TOOL_OPTIONS: -Djava.net.useSystemProxies=true

      </pre>

  • hemc4 4 hours ago
    Wow. Thanks for this update. It streamlined a lot of tasks.

    Apart from this, next step will be to add suport for building android apps on the android phones itself. No desktop needed.Building on the laptop with agents and installing the build in the phone and testing doea not seem AI native. If everything can run on my android phone, development cycle will speed up.

    • xstas1 3 hours ago
      you already could! just install Termux, npm install your favourite agent harness (pi for one has explicit Termux support, but its AGENTS.md works just fine with Claude Code for example - https://github.com/badlogic/pi-mono/blob/main/packages/codin...), and say you want an android app. It problem solves for a bit, then spits out an apk out to your Downloads folder.
      • hemc4 2 hours ago
        Let me try this. Last year this was a dream. Can't belive we are so close to automate all of this.

        My major issue last time was providing the feedback to the agent by running the apk on phone i.e, pass the debug log from the apk back to agent so it can iterate on it without me providing any input.

        • fragmede 1 hour ago
          ask the agent to run adb log so it can read it for itself
    • xstas1 3 hours ago
      Also coding agents will happily compile android applications (of maximum complexity) via Github Actions where you can just pick them up with Obtainium. No PC needed
    • smalltorch 3 hours ago
      You actually can right now on termux.
  • whstl 9 hours ago
    I wish the same thing existed for Apple.

    Everything I do for macOS/iOS is already without Xcode but it's a pain in the ass to keep up with changes, and there are things I haven't figured out yet (like AUv3).

  • rvillberg 4 hours ago
    This is a good step forward, but keep in mind the claimed gains are about "project and environment setup", not the tasks you deal with on a daily basis in an existing project.
    • anabis 3 hours ago
      Taking screenshots, optionally with component borders highlighted, and operating the UI with element names like "button1" instead of tap 200,30 looks useful. If I could get it to work.
  • sunaookami 10 hours ago
    >Google collects usage data for the Android CLI, such as commands, sub-commands, and flags used. This data does not include custom parameters or identifiable information. This information helps improve the tool and is collected in accordance with Google's Privacy Policy.

    >https://policies.google.com/privacy

    >Disable Android CLI metrics collection by using the --no-metrics flag.

    No thanks, is there no env variable for this? Doesn't Google have enough data already?

    • gowld 10 hours ago
      Android CLI can write a tool that wraps android-cli and automatically passes the flag based on an env variable.

      How would Google have enough data about a brand new product without collecting that data?

      • panzi 6 hours ago
        `alias android-cli='android-cli --no-metrics'`
        • SJMG 5 hours ago
          Uh do aliases load in non-interactive shells?
          • figmert 2 hours ago
            Create a wrapping binary instead

                mkdir -p ~/.local/bin
                printf '#!/usr/bin/env sh\nexec android-cli --no-metrics "$@"' > ~/.local/bin/android-cli
                echo 'PATH="$HOME/.local/bin:$PATH"' >> ~/.zshenv
            • yorwba 19 minutes ago
              I'm pretty sure this will just call itself in a loop. You need to use the absolute path to the wrapped binary to distinguish it from the wrapper.
          • EdwardDiego 3 hours ago
            You could export BASH_ENV to have Bash processes source a given file at startup.

            Zsh has .zshenv, and Fish just has config.fish for everything with the ability to guard certain things within it to login only or non-interactive only.

      • tredre3 8 hours ago
        > How would Google have enough data about a brand new product without collecting that data?

        They wouldn't. But on the other hand, they probably have a large amount of in-house Android app developers on whom they can conduct such metrics collection. I wouldn't expect outsiders to have vastly different workflows, because when you get out of the happy path with Android all you get is pain.

  • wiseowise 39 minutes ago
    Android Studio on its deathbed. Just release VSCode plugin and kill it for good, it has been a buggy, slow mess for the last 3 years or so.
  • antirez 9 hours ago
    Let's see if even mid/big companies with tons of resources, with AI and the right tooling will continue to write webview-apps or, even worse, use some kind of multi target wrapper.
  • jadar 4 hours ago
    This is great. We also need a tool to expose source jars to agents so they don’t need to compress. There’s a lot of Compose overloads that Claude just guesses at. I built something internally but it needs polish and Claude really struggled with the deep Gradle integration.
  • iririririr 9 hours ago
    > Your agents perform best when they have a lightweight, programmatic interface to interact with the Android SDK and development environment.

    F you google. Me too. Why didn't we get a sane way to build android apps before you had to please chatbots?

    • bitpush 8 hours ago
      Damned if you do. Damned if you dont.
      • wiseowise 36 minutes ago
        Google has been neglecting Android for years with subpar tooling and ridiculous development practices.
      • stavros 4 hours ago
        Damned if you don't, damned if you do fifteen years later for an entirely different reason.
  • mridulmalpani 6 hours ago
    How can I use this official android skill with Claude code?

    Is there any step by step process or guidance on it?

  • Evidlo 10 hours ago
    Now please let us install the apps just as easily
    • stronglikedan 9 hours ago
      downloading an APK and opening it is already about as easy as it gets. the only thing easier would be for someone else to do it for you
      • throwaway81523 8 hours ago
        You're forgetting the installation ("sideloading", what everyone else calls installation) restrictions they are about to deploy. It will be a significant hassle to install anything without Google's approval. Many F-droid apps are showing warning notices about this upcoming change.
        • kube-system 2 hours ago
          Good, it shouldn't be two clicks for elderly people to install trojans on their phone that then drain their bank account. There should be some explicit confirmation that the user knows what they are doing and they are not being scammed. It is long overdue.
          • LtWorf 2 hours ago
            It is 1 click because the malware is on the play store already!
          • darkwater 17 minutes ago
            Think of the elders!
      • stavros 4 hours ago
        "This APK cannot be scanned and its safety cannot be verified. Learn more/go back" and "learn more" has a link that looks like nothing but is actually a button to actually install the app.

        I can think of some easier things, for example popping up a dialog, pressing "install" and having my all actually be installed after that.

        • TeMPOraL 1 hour ago
          You're saying it should look like those damned browser certificate failure sites, with option to open the damn site hidden under button that looks like an unassuming link?
  • OutOfHere 10 hours ago
    But can I publish an app without having to share my ID? I want an ecosystem that doesn't require it.
    • binkHN 7 hours ago
      It's not just your ID; it's your address, phone number, and the list goes on.
    • Flavius 10 hours ago
      Absolutely not. That would be crazy.
    • nout 8 hours ago
      Zapstore or Obtanium...
  • winrid 4 hours ago
    Catching up to Flutter.
    • wiseowise 35 minutes ago
      Not even close. Flutter has been engineered from the ground up with excellent tooling, unlike Android’s mess of organically evolved crap held together by a duct tape.
    • firemelt 4 hours ago
      flutter have this already?
      • diego_sandoval 3 hours ago
        AFAIK, Flutter has had a good, capable CLI since the beggining. You've never needed to install Android Studio to use Flutter.
      • winrid 3 hours ago
        I meant in terms of development speed with agents.
  • DeathArrow 1 hour ago
    Can we have a web development CLI with web development skills?
  • user2722 10 hours ago
    Agents will allow human programmers to get what they've been begging for decades now: proper requirements and flexible, logical, tooling.
    • rtpg 8 hours ago
      this has been my sort of big tent alignment with AI people. If I'm getting good CLI tooling that _actually works_ (or fixes to existing ones that have been busted forever) then I'm pretty happy.

      Things that make systems more understandable to the LLMs ... usually make things more understandable for humans as well. Usually.

      The biggest issue I've found is that vibed up tooling tends to be pretty bad at having the right kind of "sense" for what makes good CLI UX. So you still have awkward argument structures or naming. Better than nothing though

      • phyzix5761 1 hour ago
        Its like major cities repairing their roads to incentivize autonomous vehicles to operate there. Win win for everyone.
        • noosphr 1 hour ago
          Apart from pedestrians.
          • phyzix5761 1 hour ago
            It never made sense to me why cars and pedestrians need to share the same spaces. Why can't we have more efficient walking routes that are away from cars?
            • rtpg 54 minutes ago
              if you have roads shared with pedestrians and cars (and bikes!) you can build denser cities.

              I lived real downtown in Tokyo and my street was like "1.5" lanes wide (if cars were coming in both directions one basically needs to pull over and stop). I could just walk in the middle of the street. There was no sidewalk. No street parking of course. Cars would drive down at 15km/h or whatever, and slow to a crawl if people were in the street.

              Straight lines are efficient walking routes, and ... well... that might involve just crossing the street directly! Every layer of grade separation gets in the way of that.

              End result of all of this is less pavement to maintain, slower drivers (-> safer!), good walking and cycling conditions, etc etc etc.

            • noosphr 58 minutes ago
              Because cars took over the streets from pedestrians between 1900 and 1930 and no one noticed.

              Hopefully when petrol hits $10 a gallon in the next few months more of the world will think about banning cars from high density areas.

              • phyzix5761 55 minutes ago
                Its already over $12 per gallon in Singapore. Let's see what happens.
      • whattheheckheck 4 hours ago
        Any textbooks or resources on getting better at naming things?

        The Programmers Brain book was my go to

      • volume_tech 7 hours ago
        [dead]
    • jadbox 8 hours ago
      I've been thinking the same thing lately. It's sorta frustrating that it required bots to force tech companies to make clean simple cli driven development workflows.
    • qingcharles 7 hours ago
      It's wild that it took AI to get half the companies on the planet to actually add reasonably priced APIs to their products so I don't have to puppeteer every damn thing with a flakey harness.
    • fragmede 1 hour ago
      At the expense of no longer needing the human programmer...
    • bayarearefugee 10 hours ago
      > Agents will allow human programmers to get what they've been begging for decades now: proper requirements and flexible, logical, tooling.

      ...and once this goal is finally reached the programmer will breathe a sigh of relief and then promptly be fired since now the machine can do the job as well as they could.

    • risyachka 8 hours ago
      The tooling in 2026 is so easy you can do almost anything without AI very very quickly.
  • hyhmrright 4 hours ago
    [dead]
  • kevinten10 5 hours ago
    [dead]
  • kdhaskjdhadjk 10 hours ago
    [flagged]
    • rafram 10 hours ago
      What does this have to do with the Android CLI?
      • kdhaskjdhadjk 10 hours ago
        [flagged]
        • AnimalMuppet 9 hours ago
          Since rafram is not the only one confused, yes, you really do.
          • rvz 9 hours ago
            It isn't that hard to understand:

            > Just wait until there are entire classes of vulnerabilities related to LLM usage

            This is a valid concern.

            There are going to be a new class of vulnerabilities which an LLM is involved which are going to be discovered and it will make it possible to cause catastrophic damage to a company; very easily.

            This won't be surprising since we have companies building casual remote code execution tools for "agents" waiting to be hijacked.

            • AnimalMuppet 8 hours ago
              I understand that. What about that relates specifically to the Android CLI? That was rafram's question, and mine, and as far as I can tell still hasn't been answered.

              I mean, I guess if you're going to say "don't use LLMs", then you also don't want to let agents use the Android CLI, but it seems like raising an awfully general concern in a discussion about a very specific article.

    • vlapec 10 hours ago
      That probably depends on how good 2026-era LLMs already are. But I hope you’re right, and that pre-AI devs will still make a real difference.
  • agentifysh 8 hours ago
    Flutter CLI is what we really need but this is a welcome addition.
    • bartekpacia 6 hours ago
      It exists already. Wdym?
      • wiseowise 32 minutes ago
        Flutter quality like tooling, I assume.