Unquote capstone project

In the unquote capstone project when I replace the game over message code at 5-D with the code provided in the project instructions, my game crashes. Has anyone finished the unquote project and overcome this problem?

Hi,

I has the same issue,

it turns out that it was due to the placement of
gameOverDialougeBuilder.create().show();

AlertDialog.Builder gameOverDialougeBuilder = new AlertDialog.Builder(MainActivity.this);
         gameOverDialougeBuilder.setCancelable(false);
         gameOverDialougeBuilder.setTitle("Game over!");
         gameOverDialougeBuilder.setMessage(gameOverMessage);
         gameOverDialougeBuilder.setPositiveButton("Play again?", new DialogInterface.OnClickListener() {
             @Override
             public void onClick(DialogInterface dialog, int which) {
                 startNewGame();
             }
         });
         gameOverDialougeBuilder.create().show();