Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8067199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:12:56+00:00 2026-06-05T12:12:56+00:00

Is there some sort of alternative toolchain or language for Android, which can generate

  • 0

Is there some sort of alternative toolchain or language for Android, which can generate standalone APK files?

Ideally it should not depend on the huge and ever-changing, ever-upgraded official Android SDK.

As a parable, I am looking for a rough equivalent to how PowerBASIC and Mingw targets plain Windows just fine, despite Microsoft releasing new Visual Studios all the time.

Bonus points if this language or toolchain itself is an Android program…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T12:12:57+00:00Added an answer on June 5, 2026 at 12:12 pm

    As you may or may not be aware, the Android toolchain is based on a few simple ideas:

    • Your code is compiled using the plain old java compiler, and linked against the Android stubs (android.jar) for linkage against the system library.
    • After being compiled, the code is converted to dex format. You can actually run this yourself, just do a dx --help. The job of the dx tool is to take Java class files and convert them to dex code, a pretty straightforward compilation which involves going from a stack based to register based vm, and a few other changes.
    • After having this in place, an apk is built using a set of apk tools. It used to be apkbuilder, but this has since been deprecated. You can actually run this yourself as well. All an APK is is simply a collection of the manifest, resources, and a single file for all the code in dex form. (I.e., many .class files compile to a single .dex which is quite a bit smaller because of a wrapped web of pointers).

    So the Android toolchain isn’t really all that complex. The custom build process is handled by ant build rules, which are defined in an SDK wide build.xml, which you can find in the platform-tools/ directory (iirc). However, to generate new baseline projects using this custom build environment you simply use the android update project command.

    While I’m not sure if this is the response you’d hoped for, I hope it will disambiguate the build process. It’s not really all that complex of a toolchain, the majority of it is off the shelf Java, and not Android specific (all that makes it Android specific is library specific stubs for dynamically linked system code). Beyond this, once you have a set of classes, you need only run a few commands to make an executable APK which Android unpacks. I would suspect that any tool targeting the JVM (and capable of linking with the Android specific dynamically linked API) could perform a similar process of producing class files and using this toolchain to compile the rest of the way, though obviously the automated ant build process makes it much simpler.

    EDIT:

    After some more digging, I found this relevant android-developers thread. An unsettling quote:

    At this time we simply don’t have the resources to support people who
    want to use their own build system, but we really wish we could. In
    many ways we try to make it easy on other tools vendor by clearly
    separating logic to eclipse or ant specific code (hence the multitude
    of jar files everywhere in the tools and in ADT), but this is not one
    of them.

    However, you may also find this link helpful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there some sort of C# directive to use when using a development machine
Is there some sort of exception in Java to catch an invalid Date object?
Is there some sort of HTML designer (WYSIWYG) available that allows me to draw
So is there some sort of built in checking in Dday iCalendar that checks
#foo { color:black; } Is there some sort of option to prefix a newline
... or how does zmq deal with clients that disconnect? Is there some sort
If there is some sort of debugging API that would allow someone to write
What I'm trying to find out is whether there is some sort of equivalence
Is there a way to run some sort of code analysis to find code
Is there any standard way of implementing some sort of a write-through buffer for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.