-
Notifications
You must be signed in to change notification settings - Fork 653
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
Sample Android Redex APK Crashing: android.view.InflateException: Error inflating class com.google.android.material.textfield.TextInputLayout #822
Comments
The input apk you are running on has had file path shortening applied by Android Gradle plugin, yet you are running on a case insensitive filesystem. Redex's unpacker does not handle this case gracefully, and you'll either need to turn off the Gradle resource optimizations, or run Redex from a different OS like a Linux vm (or something like that). See https://jakewharton.com/smaller-apks-with-resource-optimization/ for some more info on the Gradle plugin behavior. |
Thanks. |
I do not have an ETA for you for when we can rework things to properly handle unpacking and reading the apk files on case insensitive filesystem. For now, a workaround that would suffice is to use a Linux VM. |
…stem Summary: There have been several of these type issues #822 where the unpacker is given an .apk file with obfuscation already applied, and unpacking to a case insensitive filesystem results in things not lining up. Try to detect this with an error to make it more obvious. Reviewed By: agampe Differential Revision: D48488524 fbshipit-source-id: 68d6618e6cfde1d8e0a30b2c85e6b32340814ffe
When I am trying to pass sample release android apk to redex. The build was crashing with below logs.
Proguard is disabled.
redex command: python3 redex.py $1 -o $2 -P proguard-rules.pro -c config/default.config --sign -s ./debug.keystore -a AndroidDebugKey -p android
default.config
proguard-rules.pro
Sample APK with redex and Sample APK without redex are provided in below zip
sample-apks.zip
This crash is specifically happening when I am trying to add com.google.android.material.textfield.TextInputLayout in my xml file in release build only.
Everything is working fine in debug builds
I tried different redex configs and tried keeping this class in proguard.pro as well. But didn't worked.
The text was updated successfully, but these errors were encountered: