button.setOnTouchListener(new OnTouchListener() { public void onClick(View v) { Toast.makeText(MainActivity.this, \"YOUR TEXT\", 5000).show(); } }); <
button.setOnTouchListener(new OnTouchListener() { public void onClick(View v) { Toast.makeText(MainActivity.this, \"YOUR TEXT\", 5000).show(); } });
I also had this problem and I had to do 'fix project setup' which I found after clicking the quick fixes option. I then added a .jar file and it was all good.