Code:
I: Building resources...
aapt: warning: string 'qs_fav_long_press' has no default translation in C:\test\
test\res; found: da hu lt vi zh_TW
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.an
droid.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas
.android.com/apk/res/android); using existing value in manifest.
C:\test\test\AndroidManifest.xml:70: error: No resource identifier found for att
ribute 'primaryUserOnly' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Ryan\AppData\Local\Temp\
APKTOOL3029469463530502654.tmp, -I, C:\Users\Ryan\apktool\framework\1.apk, -S, C
:\test\test\res, -M, C:\test\test\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\Ryan\AppData\Local\Temp\APKTOOL3029469463530502654.tmp, -I, C:\Users\Ryan
\apktool\framework\1.apk, -S, C:\test\test\res, -M, C:\test\test\AndroidManifest
.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Ryan\AppData\Local\Temp\AP
KTOOL3029469463530502654.tmp, -I, C:\Users\Ryan\apktool\framework\1.apk, -S, C:\
test\test\res, -M, C:\test\test\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
Related
Hey,
I decompiled settings.apk from LewaOS (non odexed) to translate it, I translated several strings to only check but when I try to compile it back (apktool b settings NEWsettings.apk )
I got this error:
Code:
[email protected]:~/APK$ apktool b settings n.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL9063077177634782365.tmp, -0, arsc, -I, /home/lozohcum/apktool/framework/1.apk, -S, /home/lozohcum/APK/settings/res, -M, /home/lozohcum/APK/settings/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL9063077177634782365.tmp, -0, arsc, -I, /home/lozohcum/apktool/framework/1.apk, -S, /home/lozohcum/APK/settings/res, -M, /home/lozohcum/APK/settings/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL9063077177634782365.tmp, -0, arsc, -I, /home/lozohcum/apktool/framework/1.apk, -S, /home/lozohcum/APK/settings/res, -M, /home/lozohcum/APK/settings/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 10 more
Can you help me with this?
I realy want to translate my ports
Try Change permision in setting source ( via chmod 777) .
permission of what? of out folder or permission for apktool?
Why didn't you compile a deodexed apk?
i has some problem when i recompiling miuisystemui.apk , please help me how to fix ( my english is not good )
invalid resource directory name: D:\apktool\miuisystemui\res/values-fr-largeui
invalid resource directory name: D:\apktool\miuisystemui\res/values-largeui
invalid resource directory name: D:\apktool\miuisystemui\res/values-mediumui
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\AS\AppData\Local\Temp\AP
KTOOL574966566911823709.tmp, -I, C:\Users\AS\apktool\framework\1.apk, -I, C:\Use
rs\AS\apktool\framework\6.apk, -S, D:\apktool\miuisystemui\res, -M, D:\apktool\m
iuisystemui\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\AS\AppData\Local\Temp\APKTOOL574966566911823709.tmp, -I, C:\Users\AS\apkt
ool\framework\1.apk, -I, C:\Users\AS\apktool\framework\6.apk, -S, D:\apktool\miu
isystemui\res, -M, D:\apktool\miuisystemui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\AS\AppData\Local\Temp\APKT
OOL574966566911823709.tmp, -I, C:\Users\AS\apktool\framework\1.apk, -I, C:\Users
\AS\apktool\framework\6.apk, -S, D:\apktool\miuisystemui\res, -M, D:\apktool\miu
isystemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
please ,help me!!!
hello freinds Got This Error always when decompile any apk and i used all apk tools but same . can anyone help me out
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\AndroidMultitool\Decompiled_apk\Settings\res/values-largeui
invalid resource directory name: C:\AndroidMultitool\Decompiled_apk\Settings\res/values-largeui-xhdpi
invalid resource directory name: C:\AndroidMultitool\Decompiled_apk\Settings\res/values-mediumui
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Java\AppData\Local\Temp\APKTOOL5856912769995947607.tmp, -0, arsc, -I, C:\Users\Java\apktool\framework\1.apk, -I, C:\Users\Java\apktool\framework\6.apk, -S, C:\AndroidMultitool\Decompiled_apk\Settings\res, -M, C:\AndroidMultitool\Decompiled_apk\Settings\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Java\AppData\Local\Temp\APKTOOL5856912769995947607.tmp, -0, arsc, -I, C:\Users\Java\apktool\framework\1.apk, -I, C:\Users\Java\apktool\framework\6.apk, -S, C:\AndroidMultitool\Decompiled_apk\Settings\res, -M, C:\AndroidMultitool\Decompiled_apk\Settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Java\AppData\Local\Temp\APKTOOL5856912769995947607.tmp, -0, arsc, -I, C:\Users\Java\apktool\framework\1.apk, -I, C:\Users\Java\apktool\framework\6.apk, -S, C:\AndroidMultitool\Decompiled_apk\Settings\res, -M, C:\AndroidMultitool\Decompiled_apk\Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
The system cannot find the file specified.
The system cannot find the file specified.
Hello to all!
I have a problem with recompiling an apk. Given that the apk is a free program, in practice i decompile the apk (with apktool), I make the changes (in particular, a few tweaks to the Italian translation of the app that often is not complete), but when I go to recompile everything I have these errors:
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
E:\Documenti\Download\Francesco\apktool1.5.2\w\res\xml-v17\widget_info.xml:2: er
ror: No resource identifier found for attribute 'widgetCategory' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 7, --target-sdk-version, 17, -F, C:\DOCUME~1\FRANCE~1\IMPOST~1\Temp
\APKTOOL5497585975401121507.tmp, -0, arsc, -I, C:\Documents and Settings\Frances
co\apktool\framework\1.apk, -S, E:\Documenti\Download\Francesco\apktool1.5.2\w\r
es, -M, E:\Documenti\Download\Francesco\apktool1.5.2\w\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 7, --target-sdk-version, 17, -F, C:\
DOCUME~1\FRANCE~1\IMPOST~1\Temp\APKTOOL5497585975401121507.tmp, -0, arsc, -I, C:
\Documents and Settings\Francesco\apktool\framework\1.apk, -S, E:\Documenti\Down
load\Francesco\apktool1.5.2\w\res, -M, E:\Documenti\Download\Francesco\apktool1.
5.2\w\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 7, --target-sdk-version, 17, -F, C:\DOCUME~1\FRANCE~1\IMPOST~1\Temp\A
PKTOOL5497585975401121507.tmp, -0, arsc, -I, C:\Documents and Settings\Francesco
\apktool\framework\1.apk, -S, E:\Documenti\Download\Francesco\apktool1.5.2\w\res
, -M, E:\Documenti\Download\Francesco\apktool1.5.2\w\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
But I do not understand what they mean. The strange thing is that if i decompile the apk and recompile without changes anythings, it gives me the same errors.
Any suggestions?
Sorry for my bad english!
Ciccio0184 said:
Hello to all!
I have a problem with recompiling an apk. Given that the apk is a free program, in practice i decompile the apk (with apktool), I make the changes (in particular, a few tweaks to the Italian translation of the app that often is not complete), but when I go to recompile everything I have these errors:
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
E:\Documenti\Download\Francesco\apktool1.5.2\w\res\xml-v17\widget_info.xml:2: er
ror: No resource identifier found for attribute 'widgetCategory' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 7, --target-sdk-version, 17, -F, C:\DOCUME~1\FRANCE~1\IMPOST~1\Temp
\APKTOOL5497585975401121507.tmp, -0, arsc, -I, C:\Documents and Settings\Frances
co\apktool\framework\1.apk, -S, E:\Documenti\Download\Francesco\apktool1.5.2\w\r
es, -M, E:\Documenti\Download\Francesco\apktool1.5.2\w\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 7, --target-sdk-version, 17, -F, C:\
DOCUME~1\FRANCE~1\IMPOST~1\Temp\APKTOOL5497585975401121507.tmp, -0, arsc, -I, C:
\Documents and Settings\Francesco\apktool\framework\1.apk, -S, E:\Documenti\Down
load\Francesco\apktool1.5.2\w\res, -M, E:\Documenti\Download\Francesco\apktool1.
5.2\w\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 7, --target-sdk-version, 17, -F, C:\DOCUME~1\FRANCE~1\IMPOST~1\Temp\A
PKTOOL5497585975401121507.tmp, -0, arsc, -I, C:\Documents and Settings\Francesco
\apktool\framework\1.apk, -S, E:\Documenti\Download\Francesco\apktool1.5.2\w\res
, -M, E:\Documenti\Download\Francesco\apktool1.5.2\w\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
But I do not understand what they mean. The strange thing is that if i decompile the apk and recompile without changes anythings, it gives me the same errors.
Any suggestions?
Sorry for my bad english!
Click to expand...
Click to collapse
Use Xplore filemanager for decompile & recompile, for sign apk use ZipSigner...
Hello, I do not speak English very well, and that's why I'm writing with Google Translate. Who can help me compile whatsapp? Every time I try to recompile, I find these errors:
C:\apktool>apktool b Whatsapp
I: Using Apktool 2.0.0-RC3 on Whatsapp
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\Whatsapp\res\xml\whatsapp_widget.xml:2: error: No resource identifier
found for attribute 'widgetCategory' in package 'android'
C:\apktool\Whatsapp\res\xml\widget_info.xml:2: error: No resource identifier fou
nd for attribute 'initialKeyguardLayout' in package 'android'
C:\apktool\Whatsapp\res\xml\widget_info.xml:2: error: No resource identifier fou
nd for attribute 'widgetCategory' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\PC\App
Data\Local\Temp\brut_util_Jar_8673526721265381617.tmp, p, --forced-package-id, 1
27, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 48450, --ver
sion-name, 2.11.238, -F, C:\Users\PC\AppData\Local\Temp\APKTOOL51129355695285053
61.tmp, -I, C:\Users\PC\apktool\framework\1.apk, -S, C:\apktool\Whatsapp\res, -M
, C:\apktool\Whatsapp\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
at brut.androlib.Androlib.buildResources(Androlib.java:374)
at brut.androlib.Androlib.build(Androlib.java:277)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\PC\AppData\Local\Temp\brut_util_Jar_8673526721265381617
.tmp, p, --forced-package-id, 127, --min-sdk-version, 7, --target-sdk-version, 1
9, --version-code, 48450, --version-name, 2.11.238, -F, C:\Users\PC\AppData\Loca
l\Temp\APKTOOL5112935569528505361.tmp, -I, C:\Users\PC\apktool\framework\1.apk,
-S, C:\apktool\Whatsapp\res, -M, C:\apktool\Whatsapp\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:488)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\PC\AppDa
ta\Local\Temp\brut_util_Jar_8673526721265381617.tmp, p, --forced-package-id, 127
, --min-sdk-version, 7, --target-sdk-version, 19, --version-code, 48450, --versi
on-name, 2.11.238, -F, C:\Users\PC\AppData\Local\Temp\APKTOOL5112935569528505361
.tmp, -I, C:\Users\PC\apktool\framework\1.apk, -S, C:\apktool\Whatsapp\res, -M,
C:\apktool\Whatsapp\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:482)
... 6 more
Please, Help me