Could not find method in parent or ancestor context 解决办法

java.lang.IllegalStateException: Could not find method playPauseMusic(View) in a parent or
ancestor Context for android:onClick attribute defined on view class
android.support.v7.widget.AppCompatImageButton with id 'playPause'

目录

总述:

错误方式

你可能感兴趣的:(Android-GIS开发总结,android,安卓)