-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
'has invalid entry name' error for $ in a resource name #2271
Comments
I tried your file, installing AOSP framework-res.apk first, and it doesn't recompile because of this:
That dollar sign isn't a valid character which is why the file won't recompile. You'll need to change these filenames to get your file to recompile. You'll also need to fix the line in plurals.xml. Decompiling and recompiling without processing resources.arsc works without any errors. Oh, and the resource you mentioned at the top of your post? It's in the drawable-sw600dp folder so should be in the recompiled APK. |
Thank you. Indeed, usage of And I don't understand why
resource name, which is either: the filename, excluding the extension; or the value in the XML
I guess it's dummy values bug. |
I see it looks like the debug info section got smaller, probably that. The spec allows |
I have the same issue.
Windows 10. apktool also tried to build by myself and also tried to launch in IDE to debug, but still have the same result. |
same issue I guess. (aapt2 enabled):
|
I have the same issue |
You get some errors on build, but not the original ones:
Fix those two resources and:
Closing as solved in upcoming release. Watch this space for the linked bug for those bad resources. |
See #2438 - for the issue related to those dummy properties. |
I see the status of the issue is marked as closed but I still seem to have this issue with v2.6.0. So the fix is still pending? |
Please open new issue with details if you are still experiencing this. |
Information
apktool -version
) - 2.4.1Stacktrace/Logcat
Without
--no-res
build failed on<=2.4.1
with:Also there is strange difference between classes3.dex which uses this resourse:
original || rebuilded
Is it expected that rebuilder may change sizes of dex sections?
Steps to Reproduce
Frameworks
APK is NOT from an OEM ROM
APK
Latest Tinder official base apk from Playstore.
Questions to ask before submission
apktool d
,apktool b
without changing anything? Yes.The text was updated successfully, but these errors were encountered: