Skip to content

Building APK in Termux  #3597

Closed as not planned
Closed as not planned
@PeterKW

Description

@PeterKW

Is there any other way of doing this?
I've been reading documentation and got a bit lost with it all.

AndroidManifest.xml  build.one.bash  java  res
~/.../src/main $ ./build.one.bash

Beginning build in ~/PNRGatewayClientV2/app/src/main/:
APIServer.java
AndroidManifest.xml
MainActivity.java
PDUReceiver.java
SMSReceiver.java
activity_main.xml
activity_sms_send.xml
arrays.xml
backup_rules.xml
build.one.bash
colors.xml
data_extraction_rules.xml
ic_baseline_sim_card_24.xml
ic_launcher.webp
ic_launcher.webp
ic_launcher.webp
ic_launcher.webp
ic_launcher.webp
ic_launcher.xml
ic_launcher_background.xml
ic_launcher_foreground.xml
ic_launcher_round.webp
ic_launcher_round.webp
ic_launcher_round.webp
ic_launcher_round.webp
ic_launcher_round.webp
ic_launcher_round.xml
logo.png
root_preferences.xml
settings_activity.xml
strings.xml
themes.xml
themes.xml
aapt: started...
res/values/themes.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.MaterialComponents.DayNight.DarkActionBar'.

res/values/themes.xml:7: error: Error: No resource found that matches the given name: attr 'colorOnPrimary'.

res/values/themes.xml:11: error: Error: No resource found that matches the given name: attr 'colorOnSecondary'.

res/values/themes.xml:5: error: Error: No resource found that matches the given name: attr 'colorPrimary'.

res/values/themes.xml:6: error: Error: No resource found that matches the given name: attr 'colorPrimaryVariant'.

res/values/themes.xml:9: error: Error: No resource found that matches the given name: attr 'colorSecondary'.

res/values/themes.xml:10: error: Error: No resource found that matches the given name: attr 'colorSecondaryVariant'.

res/values-night/themes.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.MaterialComponents.DayNight.DarkActionBar'.

res/values-night/themes.xml:7: error: Error: No resource found that matches the given name: attr 'colorOnPrimary'.

res/values-night/themes.xml:11: error: Error: No resource found that matches the given name: attr 'colorOnSecondary'.

res/values-night/themes.xml:5: error: Error: No resource found that matches the given name: attr 'colorPrimary'.

res/values-night/themes.xml:6: error: Error: No resource found that matches the given name: attr 'colorPrimaryVariant'.

res/values-night/themes.xml:9: error: Error: No resource found that matches the given name: attr 'colorSecondary'.

res/values-night/themes.xml:10: error: Error: No resource found that matches the given name: attr 'colorSecondaryVariant'.

Signal generated aapt build.one.bash build.one.bash: EXITING...
buildAPKs signal 220 received by build.one.bash in /data/data/com.termux/files/home/PNRGatewayClientV2/app/src/main by build.one.bash.  More information in `/data/data/com.termux/files/home/buildAPKs/var/log/stnderr.main.log` file.

Running: VAR="$(grep -C 2 -ie error -ie errors "/data/data/com.termux/files/home/buildAPKs/var/log/stnderr.main.log")" && VAR="$(grep -v \-\- <<< $VAR)" && head <<< $VAR && tail <<< $VAR
grep: /data/data/com.termux/files/home/buildAPKs/var/log/stnderr.main.log: No such file or directory
Completing tasks...
Completed tasks in ~/PNRGatewayClientV2/app/src/main/.

~/.../src/main $ ls

Originally posted by @PeterKW in BuildAPKs/buildAPKs#32 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions