desword / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.Direc toryException: file must be a directory #709

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. apktool decode C:\Users\user\Desktop\com.sgiggle.production.apk

What is the expected output? What do you see instead?

Expected: decode without errors

Result: 

C:\Windows>apktool decode C:\Users\user\Desktop\com.sgiggle.production.apk
I: Using Apktool 2.0.0-RC2 on com.sgiggle.production.apk
I: Loading resource table...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.Direc
toryException: file must be a directory: com.sgiggle.production
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:313
)
        at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:123)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
        at brut.apktool.Main.cmdDecode(Main.java:170)
        at brut.apktool.Main.main(Main.java:86)
Caused by: brut.directory.DirectoryException: file must be a directory: com.sgig
gle.production
        at brut.directory.FileDirectory.<init>(FileDirectory.java:38)
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:291
)
        ... 4 more

C:\Windows>apktool decode C:\Windows\com.sgiggle.production.apk
I: Using Apktool 2.0.0-RC2 on com.sgiggle.production.apk
I: Loading resource table...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.Direc
toryException: file must be a directory: com.sgiggle.production
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:313
)
        at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:123)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
        at brut.apktool.Main.cmdDecode(Main.java:170)
        at brut.apktool.Main.main(Main.java:86)
Caused by: brut.directory.DirectoryException: file must be a directory: com.sgig
gle.production
        at brut.directory.FileDirectory.<init>(FileDirectory.java:38)
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:291
)
        ... 4 more

What version of the product are you using? On what operating system?
Version 2.0.0 RC2
Windows 8 64-Bit

Please provide any additional information below.

The apk file is over 20MB so it is too large to attach to this Email.  However, 
it can be downloaded from here:  
http://apk-dl.com/download/android/com.sgiggle.production/Tango-Messenger%2C-Vid
eo-%26-Calls3.12.119443-apk/

(Tango Messenger App)

Please let me know how to resolve this error.

Original issue reported on code.google.com by nabeelsh...@gmail.com on 25 Nov 2014 at 5:13

GoogleCodeExporter commented 9 years ago
Can anyone else confirm that this issue is reproducible? 

Original comment by nabeelsh...@gmail.com on 26 Nov 2014 at 1:56

GoogleCodeExporter commented 9 years ago
Unpacked fine for me, even using apktool 2.0.0-b9 (OS Ubuntu 14.04 LTS). Output 
suggests the decode directory doesn't exist - maybe a permissions error?  Try 
running from a different directory, or trying running cmd as admin or something 
like that.

Original comment by JaVal...@gmail.com on 26 Nov 2014 at 5:13

GoogleCodeExporter commented 9 years ago
Not a bug. Could not duplicate.

Comment #2 are good suggestions to try. The folder used for dumping the apk 
could be created/read/used.

Original comment by connor.tumbleson on 26 Nov 2014 at 5:25