-1
私は、OnCreateによってnav_headerにあるテキストビューを変更したいのですが、エラーが返されます。ヌルオブジェクトの参照。nav_header_mainの接続方法は?
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
at multimedia.slidemenu.MainActivity.onCreate(MainActivity.java:26)
をhttp://stackoverflow.com/questions/ 34973456 /どのように変更するとテキスト内のテキストのように見えるテキストのナビゲーションの引き出しのヘッダー このリンクをチェックしてみてください –
[NullPointerExceptionとは何ですか? (http://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it) –