-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Decode lost declare-styleable in attrs.xml #1217
Comments
See #775 . Attributes inside a |
@iBotPeaches This is an issue if the output of Apktool is used to create an Android library for building with Ant instead of being rebuilt with Apktool: the Ant buildtools won't generate an R.styleable and the resulting library will crash. |
While apktool is used in a multitude of ways, using it during the build of a library seems weird. Generally if you have source at that point, apktool wouldn't be needed. I looked into this before and I was fairly sure in the compiled form I'll check again to confirm. |
I'm trying to decode framework-res.apk and use the decoded resources in a custom sdk. I want to use it with the android studio. Decoding seems lost declare-styleable tags, and I'm having a lot of issues in the android studio. |
@iBotPeaches This is an issue if the output of Apktool is used to create an Android library for building with Gradle instead of being rebuilt with Apktool: the Gradle build won't generate an R.styleable and the resulting library will crash. |
i just think R.styleable is array containing R.attr , what if decode the R.styleable content , maybe can restore styleable.xml @iBotPeaches |
Information
2.1.0
) -Steps to Reproduce
2.use eclipse build xxx.apk
3.java -jar tools/apktool_2.1.0.jar d -f -s xxx.apk
in xxx/res/values/attr.xml
Questions to ask before submission
1.'declare-styleable' lost ,it's a bug?
2.It will affect me to make new R.java
3.Thank you for your effort :)
The text was updated successfully, but these errors were encountered: