Crash In Alertdialog Builder When Android Support Library Updated To 24
The code was working fine before, but when I updated support library to 24, It crashes when displaying alert dialog. Couldn't find any help as it is updated recently. Code: AlertD
Solution 1:
I think there is some problem with your imports.
The Exception :
java.lang.ClassNotFoundException: Didn't find class"android.support.v7.internal.widget.DialogTitle"
says it is unable to find DialogTitle
but i am not seeing DialogTitle
any where in your code.
So if you are having any import called android.support.v7.internal.widget.DialogTitle
any where in your project then remove it.
You need to import this for your AlertDialog:
import android.app.AlertDialog;
instead of this:
import android.support.v7.app.AlertDialog;
Solution 2:
Import this:
import android.app.AlertDialog;
Post a Comment for "Crash In Alertdialog Builder When Android Support Library Updated To 24"