简体   繁体   中英

Generate apk using ANT in ubuntu Terminal

I am trying to generate a dynamic APK using Ant through the terminal. I couldn't find 'build.XML' in my system. I tried this command, ant debug in Terminal.

but i got error like this:

Buildfile: build.xml does not exist!
Build failed

I tried this command android update project -t android-10 -p , but I got error like this:
android: command not found.

You need to ensure that the android tool has been added to your PATH .

For example, you can do this temporarily:

export PATH=$PATH:/path/to/android-sdk/tools

Assuming that the Android SDK Tools are installed at /path/to/android-sdk/tools .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM