Skip to content Skip to sidebar Skip to footer

App Crashes When Opening

I'm trying to make an app which triggers sound when button is clicked. But my app crashes everytime when I open the app, the problem with the java code because when I delete the co

Solution 1:

The error is at the button initialization

btn = (Button) findViewById(R.id.btn);

Make sure you have created a button in the activity_main.xml with the id btn.

Post a Comment for "App Crashes When Opening"