buildAPKs | Really quickly build APKs on handheld device | Android library
kandi X-RAY | buildAPKs Summary
kandi X-RAY | buildAPKs Summary
BuildAPKs has source code and scripts in order to build APKs (Android Package Kits) on Android handhelds, and similar. Quick setup instructions can be found here and also right here. To skip to installing in Amazon, Android, Arch Linux, Debian, Chromebook, Ubuntu and Windows on device in Termux you can use:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of buildAPKs
buildAPKs Key Features
buildAPKs Examples and Code Snippets
Community Discussions
Trending Discussions on buildAPKs
QUESTION
I've been trying to employ Kawa Scheme for developing Android project. I've found two repositories on GitHub: one called 'android-kawa', and another called 'KawaDroid'. They're both a bit dated (last updates were around 2012). In the case of 'android-kawa' I was able to reach the author, but he said he did't remeber enough to help me.
In the 'android-kawa' repo there's a bunch of scripts for setting up and working with the project. One of the scripts downloads the Kawa 1.13 tarball, applies some patches and then attempts to build it.
However, the build isn't supported in Termux, bevaise the config.guess
script doesn't recognize the system. This issue can be easily resolved by downloading the latest versions of config.guess
and config.sub
.
Another problem is the format of the JVM bytecode. When I use the latest Java compiler, the generated bytecode contains (I believe) instructions for JVM8+, which aren't supported by the dx
command. This isn't a problem if I run Java inside of Termux, because it installs the regular JVM, but if I want to include the Kawa jar
in my APK (which is something that I want), then it becomes an obstacle.
This, again, can be resolved by forcing the Java version to 7 in javac
. (But then, the compiler complsins that Java 1.7 is deprecated. I guess this is why the buildAPKs project uses ecj
instead of javac
)
Also, when I ./configure
Kawa, I can pass it the path to the android.jar
file (./configure --with-android=...
). I have two android.jar
files on my system:
ANSWER
Answered 2021-Sep-27 at 14:08It turned out that I have invoked Java incorrectly, and that it didn't see the android.jar
file. It helped to invoke the compiler in the following way:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install buildAPKs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page