Jay Thakkar
Jay Thakkar

Reputation: 743

How to build apk using commandline

I Want to build apk using commandline, I am using ant server by using it I am building apk with commandline but when I give this command ant debug it shows error BUILD FAILED Unable to locate tools.jar and then it gives error source resource doesnt exist

Upvotes: 1

Views: 698

Answers (1)

shalki
shalki

Reputation: 908

This might be because your JAVA_HOME is not set to your C:\Program Files\Java\jdk folder. instead it might be set to C:\Program Files\Java\jre so it's not getting tools.jar. just check out this. You can do this in this way:

C:\>set JAVA_HOME=C:\Program Files\Java\jdk
C:\>ant debug

You need tools.jar file from your jdk/lib/ folder.

Upvotes: 1

Related Questions