What does this error mean? Binary XML file line # 8: Error inflating class
I can not find a normal explanation anywhere
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#FFF" android:orientation="vertical"> <com.example.android.threepointscircle.DrawActivity.DrawView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/drawView"/> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:id="@+id/backButton" android:text="back" /> </RelativeLayout>
Above - markup
Here is the beginning of the class. Error occurs when connecting the listener
public class DrawActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.draw_activity); Button backButton = (Button) findViewById(R.id.backButton); backButton.setOnClickListener(new Button.OnClickListener() { @Override public void onClick(View view) { /** Интент для перехода на отрисовку результатов просчета*/ Intent drawActivity = new Intent(DrawActivity.this, MainActivity.class); startActivity(drawActivity); } }); } }