-
Notifications
You must be signed in to change notification settings - Fork 395
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
NullPointerException
in UCropActivity
during onCreateOptionsMenu()
causing crash in release mode
#544
Comments
app/build.gradle: buildTypes {
release {
minifyEnabled false
shrinkResources false
signingConfig signingConfigs.release
}
} I solved the problem with this code, but the program size increased by 7 MB! |
@mbfakourii works for me too. We had the same problem in production and I needed a quick fix, thanks. |
Add the UCropActivity to your Android projects AndroidManifest.xml file.
Open android/app/src/main/AndroidManifest.xml. It works for me. |
add following lines to your
Fyi why it happened? https://developer.android.com/build/shrink-code |
Description
The app crashes with a NullPointerException in the UCropActivity during the onCreateOptionsMenu() method, but only in release mode. This issue does not occur in debug mode.
Additional Information
settings.gradle:
gradle-wrapper.properties:
Other:
The text was updated successfully, but these errors were encountered: