How to Make/Build Android .apk in Termux #25793
-
|
I'm really curious if i could Make/Build Android .apk in Android Itself (with Termux) with the SDK/NDK and Programming Language such as Java/Kotlin and C++? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
Yes it is possible but unfortunately, the exact steps depend very specifically on what exact Android APK you want to build. For some kinds of APKs, the steps can be extremely convoluted to the point that it is basically easier to learn how to build the APK inside GitHub Actions and get builds that way, but if you show me the source code of the exact APK that you want to compile, then it is possible I might be able to write a script that can build it in Termux and show that to you. |
Beta Was this translation helpful? Give feedback.
@RandomPersonLikesCode
yes for basic Java projects it's somewhat simple - the really difficult part does tend to begin when C++ is used, I guess, since for basic, simple APK projects, it is somewhat easy (you mentioned C++ so I still don't know exactly what kind of app you want to make - there are a lot of ways to do that part and what steps are required are completely different for every different way).
Here are the commands for building Appliberated/HelloWorldSelfAware, which is an arbitrary, recently-maintained Android APK hello world project written in Java, in Termux: