Closed jchmrt closed 1 year ago
aapt
is part of the Android Build Tools, which we mention in the host dependencies for Android of appstraction. Maybe you didn't install the build tools or you don't have your PATH
set up correctly?
Thanks for the feedback on the README, though. I think we could provide clearer steps on how to install the dependencies and maybe also check they have been correctly installed.
Ah yes, I see the problem. My installed build tools where in $ANDROID_HOME/build-tools/33.0.2/
, but I simply copied the PATH lines from the README which uses version 33.0.0. Changing that solves it.
Thanks for the explanation!
Since appstraction v0.3.0, we're now installing the Android SDK tools automatically, so I think this can be closed.
Hi! Thanks for this cool project. I've been working on setting it up on my system and I ran into an issue where running the examples would give an error while installing Wireguard on the emulator.
After some testing and digging around in the code, I realized it is due to this line in util.ts: https://github.com/tweaselORG/appstraction/blob/main/src/util.ts#L75, which uses
aapt
to check the apk file. Turns out I didn't haveaapt
installed (I'm on a relatively fresh install of ubuntu 22.04). A quickapt install aapt
fixed this problem.From a quick look, I couldn't find aapt mentioned as a requirement for this project. So, maybe it would be possible to add this somewhere in the documentation and/or to improve the error message to make this more clear?
Let me know if you need any more info from me. Thanks!