Rebuild android.jar with appcompat library on device in Termux

447 Views Asked by At

This project https://github.com/BuildAPKs/buildAPKs builds APKs on device in Termux in Android. Frequent errors are related to appcompat when compiling without artifacts, i.e., Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.

When building with libraries enabled the APK file size is much larger, i.e. com.google.android.divideandconquer.apk builds to 35.4K without libraries enabled in BuildAPK on a smartphone. It is about 500K when built with libraries enabled. Rebuilding the aapt, dx and/or ecj packages on device to include the appcompat library in the jar files might resolve this file output size issue.

How can building packages aapt, dx and/or ecj to include appcompat in the jar files be accomplished in Termux on a smartphone? If it is not possible to build these packages in Termux and Termux PRoot on handheld, how can this be done on a traditional Linux box?

0

There are 0 best solutions below