I am running the Android tool to create the package definition, as follows:
/Users/sanjiban/Library/Android/sdk/tools/android update project --path /private/var/folders/1s/3x07dzvn3tvcc1qwprhntgxr74gm0x/T/tmp33oiu6zl/ --target android-25 --name QtApp
but that gives me the error:
Building Android package using ant.
Using ant: /usr/local/Cellar/ant/1.10.1/bin/ant
Buildfile: build.xml does not exist!
Build failed
Building the android package failed!
As per this post, that command "android update project.." itself should create the needed build.xml even if it does not exist, isn't that correct? If yes, why does it not work here? If no, where am I going wrong?
Notes:
- OS: macOS Sierra
- "whereis ant": returns nothing
- "which ant": returns "/usr/local/bin/ant"
- "echo $ANT": returns "/usr/local/Cellar/ant/1.10.1/bin/ant"
- When I try to do the same thing after setting $ANT to "/usr/local/bin/ant", I get same error (except the path of ant used of course)
Can you help me regarding how to fix this issue? Any help would be highly encouraged.