Android "ant install" fails with the error "Install file not specified."

I created a project, and when I run "ant install", I get the following:

install:
[echo] Install file not specified.
[Echo]
[echo] 'ant install' now requires specifying the purpose of the build.
[Echo]
[Echo]
[echo] ant debug install
[echo] ant install release
[echo] ant tool installation
[echo] This will create this package and install it.
[Echo]
[echo] Alternatively, you can use [echo] ant installd
[echo] ant installr
[echo] ant installi
[echo] ant installt
[echo] to install only the existing package (this will not rebuild the package.)

BUILD FAILED / Developer / SDKs / Android / tools / ant / build.xml: 1088:
An error occurred while executing this line:
/Developer/SDKs/Android/tools/ant/build.xml:1150: No message

Total time: 0 seconds

+6
source share
2 answers

Since your error indicates that you need to specify how you want your installation to be created.

If you just test using a debug build, everything will be fine.

Try using "ant debug install" instead of "ant install"

+13
source

Starting with version 14 of the SDK, the install target is independent of the compilation target ... You must use, as indicated, ant debug install to build and install apug debug, etc.

** Update: **

See the SDK Tools change notes and link to the ant command for Android developers.

+1
source

Source: https://habr.com/ru/post/901152/


All Articles