Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource identifier error "keyboardNavigationCluster" on build without changes to APK #1579

Closed
seibelj opened this issue Aug 2, 2017 · 4 comments

Comments

@seibelj
Copy link

seibelj commented Aug 2, 2017

Might be related to https://stackoverflow.com/questions/45301203/no-resource-found-that-matches-the-given-name-attr-androidkeyboardnavigationc ? App installs and runs fine

Information

  1. Apktool Version (apktool -version) - 2.2.4
  2. Operating System (Mac, Linux, Windows) - macOS
  3. APK From? (Playstore, ROM, Other) - Other

Stacktrace/Logcat

W: /path/to/decompiled/apk/res/layout-v26/abc_screen_toolbar.xml:5: error: No resource identifier found for attribute 'keyboardNavigationCluster' in package 'android'
W: 
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/7t/lmn4wjq90rl3v1xnpzd04fbw0000gn/T/brut_util_Jar_113986231575771865.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 25, --version-code, 4, --version-name, 1.0.3, --no-version-vectors, -F, /var/folders/7t/lmn4wjq90rl3v1xnpzd04fbw0000gn/T/APKTOOL1520297748076683938.tmp, -0, arsc, -0, arsc, -I, /path/to/Library/apktool/framework/1.apk, -S, /path/to/decompiled/apk/res, -M, /path/to/decompiled/apk/AndroidManifest.xml]
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:496)
	at brut.androlib.Androlib.buildResources(Androlib.java:430)
	at brut.androlib.Androlib.build(Androlib.java:329)
	at brut.androlib.Androlib.build(Androlib.java:267)
	at brut.apktool.Main.cmdBuild(Main.java:230)
	at brut.apktool.Main.main(Main.java:83)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/7t/lmn4wjq90rl3v1xnpzd04fbw0000gn/T/brut_util_Jar_113986231575771865.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 25, --version-code, 4, --version-name, 1.0.3, --no-version-vectors, -F, /var/folders/7t/lmn4wjq90rl3v1xnpzd04fbw0000gn/T/APKTOOL1520297748076683938.tmp, -0, arsc, -0, arsc, -I, /path/to/Library/apktool/framework/1.apk, -S, /path/to/decompiled/apk/res, -M, /path/to/decompiled/apk/AndroidManifest.xml]
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:441)
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:482)
	... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/7t/lmn4wjq90rl3v1xnpzd04fbw0000gn/T/brut_util_Jar_113986231575771865.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 25, --version-code, 4, --version-name, 1.0.3, --no-version-vectors, -F, /var/folders/7t/lmn4wjq90rl3v1xnpzd04fbw0000gn/T/APKTOOL1520297748076683938.tmp, -0, arsc, -0, arsc, -I, /path/to/Library/apktool/framework/1.apk, -S, /path/to/decompiled/apk/res, -M, /path/to/decompiled/apk/AndroidManifest.xml]
	at brut.util.OS.exec(OS.java:95)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:435)
	... 6 more

Steps to Reproduce

  1. apktool d App.apk
  2. apktool b App

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? Yes
  2. If you are trying to install a modified apk, did you resign it? N/A
  3. Are you using the latest apktool version? Yes
@seibelj
Copy link
Author

seibelj commented Aug 2, 2017

Nevermind, had to remove the framework 1.apk file. Out of curiosity, is this regenerated from the android SDK on my path?

@seibelj seibelj closed this as completed Aug 2, 2017
@iBotPeaches
Copy link
Owner

Generated from the internal framework inside apktool. It doesn't regenerate until its missing, which is why removing it forced the regeneration.

@ThePinkPanther
Copy link

Hey, so do you guys have a solution? How do I resolve this? I really need a fix for this

@iBotPeaches
Copy link
Owner

apktool empty-framework-dir --force

Retry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants