desword / android-apktool

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

brut.androlib.AndrolibException: java.nio.file.NoSuch FileException: templates/ #583

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Decompile dropbox.apk
2. Attempt to recompile

What is the expected output? What do you see instead?
APK should compile

What version of the product are you using? On what operating system?
Windows 7 amd I am using the beta 7 version of the apktool

Please provide any additional information below.

Here is the relevant section:
I: Using Apktool 2.0.0-Beta7 on dropbox
I: Smaling...
I: Building resources...
I: Copying libs...
I: Building apk file...
I: Copying unknown files/dir...
Exception in thread "main" brut.androlib.AndrolibException: java.nio.file.NoSuch
FileException: templates/
        at brut.androlib.Androlib.buildUnknownFiles(Androlib.java:570)
        at brut.androlib.Androlib.build(Androlib.java:293)
        at brut.androlib.Androlib.build(Androlib.java:258)
        at brut.apktool.Main.cmdBuild(Main.java:233)
        at brut.apktool.Main.main(Main.java:88)
Caused by: java.nio.file.NoSuchFileException: templates/
        at com.sun.nio.zipfs.ZipFileSystem.checkParents(ZipFileSystem.java:863)
        at com.sun.nio.zipfs.ZipFileSystem.newOutputStream(ZipFileSystem.java:528)
        at com.sun.nio.zipfs.ZipPath.newOutputStream(ZipPath.java:792)
        at com.sun.nio.zipfs.ZipFileSystemProvider.newOutputStream(ZipFileSystemProvider.java:285)
        at java.nio.file.Files.newOutputStream(Unknown Source)
        at java.nio.file.Files.copy(Unknown Source)
        at java.nio.file.CopyMoveHelper.copyToForeignTarget(Unknown Source)
        at java.nio.file.Files.copy(Unknown Source)
        at brut.androlib.Androlib.insertFile(Androlib.java:590)
        at brut.androlib.Androlib.buildUnknownFiles(Androlib.java:566)
        ... 4 more

Perhaps I am missing something very simple, but I checked to see if the 
unknown/templates folder exists in the decompiled project folder and it does. 
If you need anything else please let me know and I will do my best to provide 
it.

Original issue reported on code.google.com by eldon.mc...@gmail.com on 6 Jan 2014 at 6:07

Attachments:

GoogleCodeExporter commented 9 years ago
Either way, even though I'm removing JRE7 code. This issue should be fixed in 
Beta 8+

Original comment by connor.tumbleson on 6 Jan 2014 at 6:08

GoogleCodeExporter commented 9 years ago
Thanks for the reply and I will look forward to it then :-)

Cheers!

Original comment by eldon.mc...@gmail.com on 6 Jan 2014 at 6:10