My app works on the emulator Nexus 5(Android 7.0, API 24) but it crashes on my mobile phone(Samsung J5 Android 5.1.1) in a precise activity when I try to open another activity w
I solved my problem, it was a problem of my mobile, it didn't have enough memory
Update your Android SDK to the version of your android cellphone and in build.gradle file define the minimum and max sdk versions for your mobile.
android {
...
defaultConfig {
...
minSdkVersion 14
targetSdkVersion 24
}
productFlavors {
main {
...
}
afterLollipop {
...
minSdkVersion 21
}
}
}