-
Notifications
You must be signed in to change notification settings - Fork 27
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
Native error in release builds #25
Comments
HI @blackvvine, That crash indeed looks very strange for me. The only possible reason I can think of is using retrolambda for building this library. Maybe it produces some bytecode that is not properly handled by ART on particularly that device. If you can reproduce it, I can only suggest you build this library from source, replacing all the lambdas with anonymous classes and removing retrolambda as compilation step. So you can verify if that is the real reason. |
Can be because of multidex? |
Okay, I tried building the library from source and it seems to be working properly. I've experienced other problems when using the Gradle dependency too. I don't have much to support this but I believe it might have something to do with retrolambda. We're currently using the library with Android Studio 2.4 preview 7 which has built-in support for Java 8 expressions. We've removed the retrolambda dependency from the project and it seems to be fine. |
Interesting. |
Sorry for the delay,
Since Android Studio 2.4 Preview 4, Java 8 support is added built-in the Android build system so using Retrolambda and Jack is not really necessary anymore. By cloning Retrofit, simply removing Retrolambda from its dependencies and adding it as a module dependency to the project this crash can be fixed. It seems like one of the classes generated by Retrolambda is not placed in the APK. Now is that the root cause of the native crash too? I'm not sure. I'll let you know as soon as I had more to share. |
Hi, Thanks for the great work and the comprehensive blog posts.
I've recently added reductor to a test branch of our application. Unfortunately, there's been reports that the release apps crash on some devices, with the following stack trace (notice that there's no JVM trace in logcat for the crash)
We're quite certain that this issue is hapenning only after adding Reductor to the project and only on build APKs and only on some devices (e.g. Samsung SM-J500H Android 6.0.1). Are there any proguard rules we should be adding and we're missing right now?
The text was updated successfully, but these errors were encountered: