user3453114
user3453114

Reputation: 17

apktool not recognized as external or internal command

I'm trying to run android APKtool on my windows 7 machine, but getting the error shown in the title. I've downloaded APKtool-install-windows-r05-ibot, APKtool1.5.2 package and the apktool.jar files have been present inside the folder apktool.jar. I have also have checked both JDK and JRE has been installed and Environment variables are also set for both of them. I also tried $ ./apktool.jar and framework-res.apk but I'm still getting the same error. Just for info, I have also added the below path to the env variables,

C:\Program Files\Android\sdk\platform-tools Tools - C:\Program Files\Android\sdk\tools,C:\Program Files\Android\sdk\build-tools\18.1.0.

Please let me know how to fix this error or anything that I'm doing wrong.

Upvotes: 0

Views: 15580

Answers (5)

Daniyal Akhlaq
Daniyal Akhlaq

Reputation: 1

The problem I have been facing was due to .JAR format was not included in the "PATHEXT" variable. In Advanced system settings, click on Environment Variables, in that window look for PATHEXT in system variables column and add .JAR in the end of that variable.

Upvotes: 0

Mohammad Zuha Khalid
Mohammad Zuha Khalid

Reputation: 87

After extracting apktool-install-windows-r05-ibot and apktool1.5.2 package

try to put the content which were inside both folders into same folder say xml. Then run the command

Upvotes: 0

user7886412
user7886412

Reputation: 1

in start find Edit Environment Variables and click in variable user new 1 variable name -> PATH 2 variable user -> C:\Program Files\Java\jre7\bin

Upvotes: -1

sheshadri
sheshadri

Reputation: 1217

Folder name :ApkToolPath.

The ApkToolPath folder is located at C:/ and it contains aapt.exe,apktool.bat and apktool.jar

In cmd run this command c:>"C:\Program Files\Java\jre7\bin\java" -jar ApkToolPath\apktool.jar

After that cd ApkToolPath

cd:\ApkToolPath>apktool d name_of_apk.apk

Upvotes: 2

NightSilverWolf
NightSilverWolf

Reputation: 79

C:\ cd < apktool.jar directory here > ENTER

C:\ java -jar apktool.jar

If you don't have the Path of java set,

C:\ "C:\Program Files\Java\jre7\bin\java" -jar < apktool.jar directory here>\apktool.jar

Upvotes: 3

Related Questions