Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building APK in Termux #3597

Closed
PeterKW opened this issue Sep 24, 2023 · 1 comment
Closed

Building APK in Termux #3597

PeterKW opened this issue Sep 24, 2023 · 1 comment

Comments

@PeterKW
Copy link

PeterKW commented Sep 24, 2023

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)

@agnostic-apollo
Copy link
Member

Standard way to build android apks is with gradle, check termux/termux-packages#7227 (comment) (links are outdated)

@agnostic-apollo agnostic-apollo closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants