The Question : 1030 people think this question is useful What does the following exception mean; how can I fix it? This is the code: This is the exception: The Question Comments : check this library compile 'com.shamanland:xdroid-toaster:0.0.5', it doesn’t require runOnUiThread() or Context variable, all routine is gone! just invoke Toaster.toast(R.string.my_msg); here is the