“ant” is not recognized as command in Windows
This is my first time developing Android applications. I'm developing an Android app on Eclipse on Windows 7. I would like to run the Android app from the Windows 7 command line interface. I have my Android device connected to the PC.
The workspace directory that I use to store the Android project is
C:UsersGuestDesktopSoftware Applications DevelopmentJavaAndroid Moblie Applications ProjectsEclipse Indigo for Java EE x64-bitproject workspace
I opened the command line interface and I changed the working directory to the Android workspace directory.
cd C:UsersGuestDesktopSoftware Applications DevelopmentJavaAndroid Moblie Applications ProjectsEclipse Indigo for Java EE x64-bitproject workspace
I included Android sdk platform tools directory into the PATH environment variable.
c:UsersadminAndroid-sdksplatform-tools
Then I entered this into the Windows 7 command line interface:
ant debug
I have this error message on the cmd:
ant is not recognised as an internal or external command, operatable program or batch file.
What is the solution to this problem?
windows-7 command-line android
add a comment |
This is my first time developing Android applications. I'm developing an Android app on Eclipse on Windows 7. I would like to run the Android app from the Windows 7 command line interface. I have my Android device connected to the PC.
The workspace directory that I use to store the Android project is
C:UsersGuestDesktopSoftware Applications DevelopmentJavaAndroid Moblie Applications ProjectsEclipse Indigo for Java EE x64-bitproject workspace
I opened the command line interface and I changed the working directory to the Android workspace directory.
cd C:UsersGuestDesktopSoftware Applications DevelopmentJavaAndroid Moblie Applications ProjectsEclipse Indigo for Java EE x64-bitproject workspace
I included Android sdk platform tools directory into the PATH environment variable.
c:UsersadminAndroid-sdksplatform-tools
Then I entered this into the Windows 7 command line interface:
ant debug
I have this error message on the cmd:
ant is not recognised as an internal or external command, operatable program or batch file.
What is the solution to this problem?
windows-7 command-line android
1
If youcdto...android-sdksplatform-toolsdoes the command work? In other words, isantin that directory?
– iglvzx
Jun 17 '12 at 6:39
Are there any typos, i.e. did you separated ....platform-tools with a semicolon?
– harper
Jun 17 '12 at 7:20
There was no mistake
– user1294663
Jun 18 '12 at 15:05
add a comment |
This is my first time developing Android applications. I'm developing an Android app on Eclipse on Windows 7. I would like to run the Android app from the Windows 7 command line interface. I have my Android device connected to the PC.
The workspace directory that I use to store the Android project is
C:UsersGuestDesktopSoftware Applications DevelopmentJavaAndroid Moblie Applications ProjectsEclipse Indigo for Java EE x64-bitproject workspace
I opened the command line interface and I changed the working directory to the Android workspace directory.
cd C:UsersGuestDesktopSoftware Applications DevelopmentJavaAndroid Moblie Applications ProjectsEclipse Indigo for Java EE x64-bitproject workspace
I included Android sdk platform tools directory into the PATH environment variable.
c:UsersadminAndroid-sdksplatform-tools
Then I entered this into the Windows 7 command line interface:
ant debug
I have this error message on the cmd:
ant is not recognised as an internal or external command, operatable program or batch file.
What is the solution to this problem?
windows-7 command-line android
This is my first time developing Android applications. I'm developing an Android app on Eclipse on Windows 7. I would like to run the Android app from the Windows 7 command line interface. I have my Android device connected to the PC.
The workspace directory that I use to store the Android project is
C:UsersGuestDesktopSoftware Applications DevelopmentJavaAndroid Moblie Applications ProjectsEclipse Indigo for Java EE x64-bitproject workspace
I opened the command line interface and I changed the working directory to the Android workspace directory.
cd C:UsersGuestDesktopSoftware Applications DevelopmentJavaAndroid Moblie Applications ProjectsEclipse Indigo for Java EE x64-bitproject workspace
I included Android sdk platform tools directory into the PATH environment variable.
c:UsersadminAndroid-sdksplatform-tools
Then I entered this into the Windows 7 command line interface:
ant debug
I have this error message on the cmd:
ant is not recognised as an internal or external command, operatable program or batch file.
What is the solution to this problem?
windows-7 command-line android
windows-7 command-line android
edited Jun 17 '12 at 8:26
Sathyajith Bhat♦
53k29157253
53k29157253
asked Jun 17 '12 at 3:24
user1294663user1294663
66236
66236
1
If youcdto...android-sdksplatform-toolsdoes the command work? In other words, isantin that directory?
– iglvzx
Jun 17 '12 at 6:39
Are there any typos, i.e. did you separated ....platform-tools with a semicolon?
– harper
Jun 17 '12 at 7:20
There was no mistake
– user1294663
Jun 18 '12 at 15:05
add a comment |
1
If youcdto...android-sdksplatform-toolsdoes the command work? In other words, isantin that directory?
– iglvzx
Jun 17 '12 at 6:39
Are there any typos, i.e. did you separated ....platform-tools with a semicolon?
– harper
Jun 17 '12 at 7:20
There was no mistake
– user1294663
Jun 18 '12 at 15:05
1
1
If you
cd to ...android-sdksplatform-tools does the command work? In other words, is ant in that directory?– iglvzx
Jun 17 '12 at 6:39
If you
cd to ...android-sdksplatform-tools does the command work? In other words, is ant in that directory?– iglvzx
Jun 17 '12 at 6:39
Are there any typos, i.e. did you separated ....platform-tools with a semicolon?
– harper
Jun 17 '12 at 7:20
Are there any typos, i.e. did you separated ....platform-tools with a semicolon?
– harper
Jun 17 '12 at 7:20
There was no mistake
– user1294663
Jun 18 '12 at 15:05
There was no mistake
– user1294663
Jun 18 '12 at 15:05
add a comment |
4 Answers
4
active
oldest
votes
ant is not a part of standard Android SDK setup. You'll have to install it.
- Download the latest ant zip file from The Apache Ant Project.
- Extract the zip file to a folder, say
c:ant
- Add
c:antto your path environment variable
Once these are done, you'll be able to run ant from the command line
I still cant run ant despite downloading, extract an to folder and add to path environment variable. The windows that i ran on was 64-bit version. the android sdk supports 32-bit java jdk but not the 64 bit java jdk
– user1294663
Jun 18 '12 at 14:55
by the way my workspace is located in the windows 7 guest account. I accessed the android workspace using the windows 7 administrator account.
– user1294663
Jun 18 '12 at 14:57
@user1294663 the SDK supports 64-bit JDK ( I use the 64-bit JDK, fyi).
– Sathyajith Bhat♦
Jun 18 '12 at 14:59
The android windows installer cannot proceed on to install the android sdk when i only installed the java 64-bit jdk version for windows 7 64-bit. When the android windows installer detects the 32-bit version of java jdk the android sdk can be installed. That was what i encountered.
– user1294663
Jun 18 '12 at 15:01
1
I think i managed to run ant. i put the environment variable for apache ant directory with bin. Then i ran ant debug . Now i see a different message . It says unable to locate tools.jar Expected to find it in C:Program Files Javajre7libtools.jar Buildfile: build.xml does not exist build failed. Now what???
– user1294663
Jun 19 '12 at 13:49
|
show 1 more comment
To assist with the above. verify from your Java installation directory that You have tools.jar; if not go and download http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html . after installation, you should see tools.jar in the lib subdirectory(i.e path_to_installation/java/jdkx.x.x/lib).
After that; you need to add the path to this new installation with : variable_name: JAVA_HOME and variable_value= path_to_installation/java/jdkx.x.x
Ant should not give you the JDK error again. If you already have the tools.jar, then just add the JAVA_HOME to point to the directory as mentioned above "path_to_installation/java/jdkx.x.x"-this assumes that tools.jar is some where in the jdkx.x.x directory
You may encounter issues with build.xml, check out this link: http://www.vogella.com/articles/AndroidBuildAnt/article.html
Note: x.x.x represents the version Number of your installation
1
I think that should beJAVA_HOME, notJAV_HOME.
– BruceHill
Feb 12 '13 at 23:24
add a comment |
Navigate to the .android folder in your home directory ~/.android (Linux,Mac OS) or C:Documents and Settings[User Name].android in Windows XP or C:Users.android in Windows Vista or Windows 7, and delete the debug.keystore file. Then go to eclipse and clean the project, this will create a new debug.keystore file with default validity period 365 days.
For Linux user: Delete your debug certificate (debug.keystore and ddms.cfg) under ~/.android/debug.keystore
For Windows user: Delete your debug certificate (debug.keystore and ddms.cfg) under
C:Documents and SettingsAdministrator.android
add a comment |
First, you have to download ANT. Here is the link https://ant.apache.org/bindownload.cgi.
Then extract your downloaded file in C:Program FilesAnt Folder where Ant Folder is the folder name where I have extracted.
Now you have to set environment variables.
Right click on This PC > Properties > Advanced system settings > Environment Variables > User variables > New > Variable name:ANT_HOME & for Variable value:C:Program FilesAnt Filesapache-ant-1.10.5 > OK.
Now goto System variables to add bin path.
System variables > double click on Path >New > C:Program FilesAnt Filesapache-ant-1.10.5bin > OK.
Now let's check whether it is installed correctly or not.
goto Command Prompt > and type ant -version.
That's it. Let me know if still getting any difficulties.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f437834%2fant-is-not-recognized-as-command-in-windows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
ant is not a part of standard Android SDK setup. You'll have to install it.
- Download the latest ant zip file from The Apache Ant Project.
- Extract the zip file to a folder, say
c:ant
- Add
c:antto your path environment variable
Once these are done, you'll be able to run ant from the command line
I still cant run ant despite downloading, extract an to folder and add to path environment variable. The windows that i ran on was 64-bit version. the android sdk supports 32-bit java jdk but not the 64 bit java jdk
– user1294663
Jun 18 '12 at 14:55
by the way my workspace is located in the windows 7 guest account. I accessed the android workspace using the windows 7 administrator account.
– user1294663
Jun 18 '12 at 14:57
@user1294663 the SDK supports 64-bit JDK ( I use the 64-bit JDK, fyi).
– Sathyajith Bhat♦
Jun 18 '12 at 14:59
The android windows installer cannot proceed on to install the android sdk when i only installed the java 64-bit jdk version for windows 7 64-bit. When the android windows installer detects the 32-bit version of java jdk the android sdk can be installed. That was what i encountered.
– user1294663
Jun 18 '12 at 15:01
1
I think i managed to run ant. i put the environment variable for apache ant directory with bin. Then i ran ant debug . Now i see a different message . It says unable to locate tools.jar Expected to find it in C:Program Files Javajre7libtools.jar Buildfile: build.xml does not exist build failed. Now what???
– user1294663
Jun 19 '12 at 13:49
|
show 1 more comment
ant is not a part of standard Android SDK setup. You'll have to install it.
- Download the latest ant zip file from The Apache Ant Project.
- Extract the zip file to a folder, say
c:ant
- Add
c:antto your path environment variable
Once these are done, you'll be able to run ant from the command line
I still cant run ant despite downloading, extract an to folder and add to path environment variable. The windows that i ran on was 64-bit version. the android sdk supports 32-bit java jdk but not the 64 bit java jdk
– user1294663
Jun 18 '12 at 14:55
by the way my workspace is located in the windows 7 guest account. I accessed the android workspace using the windows 7 administrator account.
– user1294663
Jun 18 '12 at 14:57
@user1294663 the SDK supports 64-bit JDK ( I use the 64-bit JDK, fyi).
– Sathyajith Bhat♦
Jun 18 '12 at 14:59
The android windows installer cannot proceed on to install the android sdk when i only installed the java 64-bit jdk version for windows 7 64-bit. When the android windows installer detects the 32-bit version of java jdk the android sdk can be installed. That was what i encountered.
– user1294663
Jun 18 '12 at 15:01
1
I think i managed to run ant. i put the environment variable for apache ant directory with bin. Then i ran ant debug . Now i see a different message . It says unable to locate tools.jar Expected to find it in C:Program Files Javajre7libtools.jar Buildfile: build.xml does not exist build failed. Now what???
– user1294663
Jun 19 '12 at 13:49
|
show 1 more comment
ant is not a part of standard Android SDK setup. You'll have to install it.
- Download the latest ant zip file from The Apache Ant Project.
- Extract the zip file to a folder, say
c:ant
- Add
c:antto your path environment variable
Once these are done, you'll be able to run ant from the command line
ant is not a part of standard Android SDK setup. You'll have to install it.
- Download the latest ant zip file from The Apache Ant Project.
- Extract the zip file to a folder, say
c:ant
- Add
c:antto your path environment variable
Once these are done, you'll be able to run ant from the command line
edited Jun 17 '12 at 8:32
iglvzx
19.5k1167112
19.5k1167112
answered Jun 17 '12 at 8:25
Sathyajith Bhat♦Sathyajith Bhat
53k29157253
53k29157253
I still cant run ant despite downloading, extract an to folder and add to path environment variable. The windows that i ran on was 64-bit version. the android sdk supports 32-bit java jdk but not the 64 bit java jdk
– user1294663
Jun 18 '12 at 14:55
by the way my workspace is located in the windows 7 guest account. I accessed the android workspace using the windows 7 administrator account.
– user1294663
Jun 18 '12 at 14:57
@user1294663 the SDK supports 64-bit JDK ( I use the 64-bit JDK, fyi).
– Sathyajith Bhat♦
Jun 18 '12 at 14:59
The android windows installer cannot proceed on to install the android sdk when i only installed the java 64-bit jdk version for windows 7 64-bit. When the android windows installer detects the 32-bit version of java jdk the android sdk can be installed. That was what i encountered.
– user1294663
Jun 18 '12 at 15:01
1
I think i managed to run ant. i put the environment variable for apache ant directory with bin. Then i ran ant debug . Now i see a different message . It says unable to locate tools.jar Expected to find it in C:Program Files Javajre7libtools.jar Buildfile: build.xml does not exist build failed. Now what???
– user1294663
Jun 19 '12 at 13:49
|
show 1 more comment
I still cant run ant despite downloading, extract an to folder and add to path environment variable. The windows that i ran on was 64-bit version. the android sdk supports 32-bit java jdk but not the 64 bit java jdk
– user1294663
Jun 18 '12 at 14:55
by the way my workspace is located in the windows 7 guest account. I accessed the android workspace using the windows 7 administrator account.
– user1294663
Jun 18 '12 at 14:57
@user1294663 the SDK supports 64-bit JDK ( I use the 64-bit JDK, fyi).
– Sathyajith Bhat♦
Jun 18 '12 at 14:59
The android windows installer cannot proceed on to install the android sdk when i only installed the java 64-bit jdk version for windows 7 64-bit. When the android windows installer detects the 32-bit version of java jdk the android sdk can be installed. That was what i encountered.
– user1294663
Jun 18 '12 at 15:01
1
I think i managed to run ant. i put the environment variable for apache ant directory with bin. Then i ran ant debug . Now i see a different message . It says unable to locate tools.jar Expected to find it in C:Program Files Javajre7libtools.jar Buildfile: build.xml does not exist build failed. Now what???
– user1294663
Jun 19 '12 at 13:49
I still cant run ant despite downloading, extract an to folder and add to path environment variable. The windows that i ran on was 64-bit version. the android sdk supports 32-bit java jdk but not the 64 bit java jdk
– user1294663
Jun 18 '12 at 14:55
I still cant run ant despite downloading, extract an to folder and add to path environment variable. The windows that i ran on was 64-bit version. the android sdk supports 32-bit java jdk but not the 64 bit java jdk
– user1294663
Jun 18 '12 at 14:55
by the way my workspace is located in the windows 7 guest account. I accessed the android workspace using the windows 7 administrator account.
– user1294663
Jun 18 '12 at 14:57
by the way my workspace is located in the windows 7 guest account. I accessed the android workspace using the windows 7 administrator account.
– user1294663
Jun 18 '12 at 14:57
@user1294663 the SDK supports 64-bit JDK ( I use the 64-bit JDK, fyi).
– Sathyajith Bhat♦
Jun 18 '12 at 14:59
@user1294663 the SDK supports 64-bit JDK ( I use the 64-bit JDK, fyi).
– Sathyajith Bhat♦
Jun 18 '12 at 14:59
The android windows installer cannot proceed on to install the android sdk when i only installed the java 64-bit jdk version for windows 7 64-bit. When the android windows installer detects the 32-bit version of java jdk the android sdk can be installed. That was what i encountered.
– user1294663
Jun 18 '12 at 15:01
The android windows installer cannot proceed on to install the android sdk when i only installed the java 64-bit jdk version for windows 7 64-bit. When the android windows installer detects the 32-bit version of java jdk the android sdk can be installed. That was what i encountered.
– user1294663
Jun 18 '12 at 15:01
1
1
I think i managed to run ant. i put the environment variable for apache ant directory with bin. Then i ran ant debug . Now i see a different message . It says unable to locate tools.jar Expected to find it in C:Program Files Javajre7libtools.jar Buildfile: build.xml does not exist build failed. Now what???
– user1294663
Jun 19 '12 at 13:49
I think i managed to run ant. i put the environment variable for apache ant directory with bin. Then i ran ant debug . Now i see a different message . It says unable to locate tools.jar Expected to find it in C:Program Files Javajre7libtools.jar Buildfile: build.xml does not exist build failed. Now what???
– user1294663
Jun 19 '12 at 13:49
|
show 1 more comment
To assist with the above. verify from your Java installation directory that You have tools.jar; if not go and download http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html . after installation, you should see tools.jar in the lib subdirectory(i.e path_to_installation/java/jdkx.x.x/lib).
After that; you need to add the path to this new installation with : variable_name: JAVA_HOME and variable_value= path_to_installation/java/jdkx.x.x
Ant should not give you the JDK error again. If you already have the tools.jar, then just add the JAVA_HOME to point to the directory as mentioned above "path_to_installation/java/jdkx.x.x"-this assumes that tools.jar is some where in the jdkx.x.x directory
You may encounter issues with build.xml, check out this link: http://www.vogella.com/articles/AndroidBuildAnt/article.html
Note: x.x.x represents the version Number of your installation
1
I think that should beJAVA_HOME, notJAV_HOME.
– BruceHill
Feb 12 '13 at 23:24
add a comment |
To assist with the above. verify from your Java installation directory that You have tools.jar; if not go and download http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html . after installation, you should see tools.jar in the lib subdirectory(i.e path_to_installation/java/jdkx.x.x/lib).
After that; you need to add the path to this new installation with : variable_name: JAVA_HOME and variable_value= path_to_installation/java/jdkx.x.x
Ant should not give you the JDK error again. If you already have the tools.jar, then just add the JAVA_HOME to point to the directory as mentioned above "path_to_installation/java/jdkx.x.x"-this assumes that tools.jar is some where in the jdkx.x.x directory
You may encounter issues with build.xml, check out this link: http://www.vogella.com/articles/AndroidBuildAnt/article.html
Note: x.x.x represents the version Number of your installation
1
I think that should beJAVA_HOME, notJAV_HOME.
– BruceHill
Feb 12 '13 at 23:24
add a comment |
To assist with the above. verify from your Java installation directory that You have tools.jar; if not go and download http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html . after installation, you should see tools.jar in the lib subdirectory(i.e path_to_installation/java/jdkx.x.x/lib).
After that; you need to add the path to this new installation with : variable_name: JAVA_HOME and variable_value= path_to_installation/java/jdkx.x.x
Ant should not give you the JDK error again. If you already have the tools.jar, then just add the JAVA_HOME to point to the directory as mentioned above "path_to_installation/java/jdkx.x.x"-this assumes that tools.jar is some where in the jdkx.x.x directory
You may encounter issues with build.xml, check out this link: http://www.vogella.com/articles/AndroidBuildAnt/article.html
Note: x.x.x represents the version Number of your installation
To assist with the above. verify from your Java installation directory that You have tools.jar; if not go and download http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html . after installation, you should see tools.jar in the lib subdirectory(i.e path_to_installation/java/jdkx.x.x/lib).
After that; you need to add the path to this new installation with : variable_name: JAVA_HOME and variable_value= path_to_installation/java/jdkx.x.x
Ant should not give you the JDK error again. If you already have the tools.jar, then just add the JAVA_HOME to point to the directory as mentioned above "path_to_installation/java/jdkx.x.x"-this assumes that tools.jar is some where in the jdkx.x.x directory
You may encounter issues with build.xml, check out this link: http://www.vogella.com/articles/AndroidBuildAnt/article.html
Note: x.x.x represents the version Number of your installation
edited Feb 14 '13 at 21:07
answered Feb 11 '13 at 23:41
I LI L
213
213
1
I think that should beJAVA_HOME, notJAV_HOME.
– BruceHill
Feb 12 '13 at 23:24
add a comment |
1
I think that should beJAVA_HOME, notJAV_HOME.
– BruceHill
Feb 12 '13 at 23:24
1
1
I think that should be
JAVA_HOME, not JAV_HOME.– BruceHill
Feb 12 '13 at 23:24
I think that should be
JAVA_HOME, not JAV_HOME.– BruceHill
Feb 12 '13 at 23:24
add a comment |
Navigate to the .android folder in your home directory ~/.android (Linux,Mac OS) or C:Documents and Settings[User Name].android in Windows XP or C:Users.android in Windows Vista or Windows 7, and delete the debug.keystore file. Then go to eclipse and clean the project, this will create a new debug.keystore file with default validity period 365 days.
For Linux user: Delete your debug certificate (debug.keystore and ddms.cfg) under ~/.android/debug.keystore
For Windows user: Delete your debug certificate (debug.keystore and ddms.cfg) under
C:Documents and SettingsAdministrator.android
add a comment |
Navigate to the .android folder in your home directory ~/.android (Linux,Mac OS) or C:Documents and Settings[User Name].android in Windows XP or C:Users.android in Windows Vista or Windows 7, and delete the debug.keystore file. Then go to eclipse and clean the project, this will create a new debug.keystore file with default validity period 365 days.
For Linux user: Delete your debug certificate (debug.keystore and ddms.cfg) under ~/.android/debug.keystore
For Windows user: Delete your debug certificate (debug.keystore and ddms.cfg) under
C:Documents and SettingsAdministrator.android
add a comment |
Navigate to the .android folder in your home directory ~/.android (Linux,Mac OS) or C:Documents and Settings[User Name].android in Windows XP or C:Users.android in Windows Vista or Windows 7, and delete the debug.keystore file. Then go to eclipse and clean the project, this will create a new debug.keystore file with default validity period 365 days.
For Linux user: Delete your debug certificate (debug.keystore and ddms.cfg) under ~/.android/debug.keystore
For Windows user: Delete your debug certificate (debug.keystore and ddms.cfg) under
C:Documents and SettingsAdministrator.android
Navigate to the .android folder in your home directory ~/.android (Linux,Mac OS) or C:Documents and Settings[User Name].android in Windows XP or C:Users.android in Windows Vista or Windows 7, and delete the debug.keystore file. Then go to eclipse and clean the project, this will create a new debug.keystore file with default validity period 365 days.
For Linux user: Delete your debug certificate (debug.keystore and ddms.cfg) under ~/.android/debug.keystore
For Windows user: Delete your debug certificate (debug.keystore and ddms.cfg) under
C:Documents and SettingsAdministrator.android
answered Mar 3 '13 at 16:23
VeggieVampireVeggieVampire
1
1
add a comment |
add a comment |
First, you have to download ANT. Here is the link https://ant.apache.org/bindownload.cgi.
Then extract your downloaded file in C:Program FilesAnt Folder where Ant Folder is the folder name where I have extracted.
Now you have to set environment variables.
Right click on This PC > Properties > Advanced system settings > Environment Variables > User variables > New > Variable name:ANT_HOME & for Variable value:C:Program FilesAnt Filesapache-ant-1.10.5 > OK.
Now goto System variables to add bin path.
System variables > double click on Path >New > C:Program FilesAnt Filesapache-ant-1.10.5bin > OK.
Now let's check whether it is installed correctly or not.
goto Command Prompt > and type ant -version.
That's it. Let me know if still getting any difficulties.
add a comment |
First, you have to download ANT. Here is the link https://ant.apache.org/bindownload.cgi.
Then extract your downloaded file in C:Program FilesAnt Folder where Ant Folder is the folder name where I have extracted.
Now you have to set environment variables.
Right click on This PC > Properties > Advanced system settings > Environment Variables > User variables > New > Variable name:ANT_HOME & for Variable value:C:Program FilesAnt Filesapache-ant-1.10.5 > OK.
Now goto System variables to add bin path.
System variables > double click on Path >New > C:Program FilesAnt Filesapache-ant-1.10.5bin > OK.
Now let's check whether it is installed correctly or not.
goto Command Prompt > and type ant -version.
That's it. Let me know if still getting any difficulties.
add a comment |
First, you have to download ANT. Here is the link https://ant.apache.org/bindownload.cgi.
Then extract your downloaded file in C:Program FilesAnt Folder where Ant Folder is the folder name where I have extracted.
Now you have to set environment variables.
Right click on This PC > Properties > Advanced system settings > Environment Variables > User variables > New > Variable name:ANT_HOME & for Variable value:C:Program FilesAnt Filesapache-ant-1.10.5 > OK.
Now goto System variables to add bin path.
System variables > double click on Path >New > C:Program FilesAnt Filesapache-ant-1.10.5bin > OK.
Now let's check whether it is installed correctly or not.
goto Command Prompt > and type ant -version.
That's it. Let me know if still getting any difficulties.
First, you have to download ANT. Here is the link https://ant.apache.org/bindownload.cgi.
Then extract your downloaded file in C:Program FilesAnt Folder where Ant Folder is the folder name where I have extracted.
Now you have to set environment variables.
Right click on This PC > Properties > Advanced system settings > Environment Variables > User variables > New > Variable name:ANT_HOME & for Variable value:C:Program FilesAnt Filesapache-ant-1.10.5 > OK.
Now goto System variables to add bin path.
System variables > double click on Path >New > C:Program FilesAnt Filesapache-ant-1.10.5bin > OK.
Now let's check whether it is installed correctly or not.
goto Command Prompt > and type ant -version.
That's it. Let me know if still getting any difficulties.
answered Jan 24 at 11:17
Naveen RamNaveen Ram
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f437834%2fant-is-not-recognized-as-command-in-windows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
If you
cdto...android-sdksplatform-toolsdoes the command work? In other words, isantin that directory?– iglvzx
Jun 17 '12 at 6:39
Are there any typos, i.e. did you separated ....platform-tools with a semicolon?
– harper
Jun 17 '12 at 7:20
There was no mistake
– user1294663
Jun 18 '12 at 15:05