Skip to content
Guest Big Announcement

Apk Recompiling help

Featured Replies

Hello ! 

 

 

SO i usually recompile and decompile apks , duh but there is something significant about some apps like free fall is that you can decompile the apk , but you can never recompile it even if you made a change or no :(

 

I use apktool to decompile and recompile as it works the best and designed to do so 

 

Here is an error screenshot if you would like to look at it  :

 

Users/arm21/com.disney.cinderellafreefall_goo/assets/com\tapjoy\res\countdown_image.png: error: Invalid filename.  Unable to add.

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/lf/jygdbj3j7vb_srz7hg6rrw040000gn/T/brut_util_Jar_2380018692835214191.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 24, --version-code, 105, --version-name, 2.10.0, -F, /Users/arm21/com.disney.cinderellafreefall_goo/dist/com.disney.cinderellafreefall_goo.apk, -0, arsc, -0, zip, -0, properties, -0, arsc, -A, /Users/arm21/com.disney.cinderellafreefall_goo/assets, /Users/arm21/com.disney.cinderellafreefall_goo/build/apk]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:439)

at brut.androlib.Androlib.buildApk(Androlib.java:675)

at brut.androlib.Androlib.build(Androlib.java:315)

at brut.androlib.Androlib.build(Androlib.java:264)

at brut.apktool.Main.cmdBuild(Main.java:227)

at brut.apktool.Main.main(Main.java:84)

Caused by: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/lf/jygdbj3j7vb_srz7hg6rrw040000gn/T/brut_util_Jar_2380018692835214191.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 24, --version-code, 105, --version-name, 2.10.0, -F, /Users/arm21/com.disney.cinderellafreefall_goo/dist/com.disney.cinderellafreefall_goo.apk, -0, arsc, -0, zip, -0, properties, -0, arsc, -A, /Users/arm21/com.disney.cinderellafreefall_goo/assets, /Users/arm21/com.disney.cinderellafreefall_goo/build/apk]

at brut.util.OS.exec(OS.java:95)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)

... 5 more

 

 

I would like to know if there is a way around ...

Solved by fahadxmb

  • Replies 25
  • Views 4.4k
  • Created
  • Last Reply

Top Posters In This Topic

I remember this kind of error,

 

If I remember correctly, you'll have to downgrade your apktool version to 2.1.1

 

Then decompile the apk again & then you should be able to recompile again

  • Author

What version of apktool version are you using?

2.2.0 works fine with me (tested Free Fall)

Its cinderella free fall and how to check apktool version ?

Its cinderella free fall and how to check apktool version ?

when you type the command 'apktool b 'name' ' 

it will say under that: using apktool 2.2.0 (or yours)

  • Author

@TheArmKing you did not edit it as zahir said or you did?

I tried both , once after editing , deleted everything , decompiled again , didn't touch anything and recompiled again , same problem :(

when you type the command 'apktool b 'name' ' 

it will say under that: using apktool 2.2.0 (or yours)

it says using apktool 2.2.1 

  • Solution

I tried both , once after editing , deleted everything , decompiled again , didn't touch anything and recompiled again , same problem :(

it says using apktool 2.2.1

 

So use the latest version.

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.