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

Watch Face Format Sample : aapt2 is not working. #1015

Open
choe-apposter opened this issue Mar 4, 2024 · 3 comments
Open

Watch Face Format Sample : aapt2 is not working. #1015

choe-apposter opened this issue Mar 4, 2024 · 3 comments

Comments

@choe-apposter
Copy link

choe-apposter commented Mar 4, 2024

I'm trying to build a Watch Face Format Sample.

When I enter ./build-wff.sh SimpleDigital in the terminal,
Error: AAPT2 not defined, please set and try again
e.g. /build-tools//aapt2
It comes out like this.

I'm using a MAC, and I've configured it in the .zsenv file as below.
export PATH=$PATH:$ANDROID_HOME/build-tools/34.0.0

But it doesn't work.

What's interesting is,
If I go from the terminal to the path where the actual adapt2 is and input ./aapt2, it works well, but if I input adapt2, it doesn't work.

How can I test the sample?

@yschimke
Copy link
Contributor

yschimke commented Mar 6, 2024

There are other issues here. If it can't find bundletool then it exits without a warning.

@yschimke
Copy link
Contributor

yschimke commented Mar 6, 2024

Instructions won't work on linux https://stackoverflow.com/questions/53298843/how-do-i-install-bundletool

@yschimke
Copy link
Contributor

yschimke commented Mar 6, 2024

For you issue, be aware the script wants you to specify the full path to the command as an env variable. Something like

AAPT2="$ANDROID_HOME/build-tools/34.0.0/aapt2" 

We should add a github action running this to demonstrate it.

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