user3402584
user3402584

Reputation: 410

Building android app with command prompt

i am trying to build my first training application for android using only sdk tools. I am using this tutorial: https://developer.android.com/training/basics/firstapp/running-app.html

I am in my project folder which was generated with android create project command.I am using windows 8.1 64 bits. Unfortunately when i am trying to run gradlew.bat assembleDebug i an got error:

'gradlew.bat' is not recognized as an internal command or external command,operable program or batch file.

I don't know what is going on. I add platform-tools and tools to my path. I would be grateful for help!

When i am using gradle -v i am getting information about gradle. Byt gradlew.bat is not working.

Upvotes: 2

Views: 3992

Answers (2)

naveen.ccmsd
naveen.ccmsd

Reputation: 31

Find the directory where gradlew.bat present and add it your the Environment path.

I found gradlew in he below path and it works!!!!

C:\Program Files (x86)\Android\android-sdk\tools\templates\gradle\wrapper\

Upvotes: 2

Skizo-ozᴉʞS ツ
Skizo-ozᴉʞS ツ

Reputation: 20646

Just do this, this solved my problem before.

Open Control Panel

Go to System → Environment Variables

In PATH add the following entry at the beginning: %SystemRoot%\system32;

Upvotes: 1

Related Questions