Arduino UNO TFT 2.6"/2.8" LCD Shield Touch Display not working

So, I’ve been having trouble doing ANYTHING with the touch features of the shield. I tried using the tftpaint_shield example to test it out, but every time I try to compile, it comes out with “redefinition of TouchScreen.ts”

Here’s the whole error:

Arduino: 1.8.4 (Mac OS X), Board: “Arduino/Genuino Uno”

tftpaint_shield:26: error: redefinition of ‘TouchScreen ts’
TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300);
^
/Users/Ben/Documents/Arduino/libraries/librarything/examples/adafruit_originals/tftpaint_shield/tftpaint_shield.ino:38:13: note: ‘TouchScreen ts’ previously declared here
TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300);
^
tftpaint_shield:44: error: redefinition of ‘Adafruit_TFTLCD tft’
Adafruit_TFTLCD tft;
^
/Users/Ben/Documents/Arduino/libraries/librarything/examples/adafruit_originals/tftpaint_shield/tftpaint_shield.ino:56:17: note: ‘Adafruit_TFTLCD tft’ previously declared here
Adafruit_TFTLCD tft;
^
tftpaint_shield:48: error: redefinition of ‘int oldcolor’
int oldcolor, currentcolor;
^
/Users/Ben/Documents/Arduino/libraries/librarything/examples/adafruit_originals/tftpaint_shield/tftpaint_shield.ino:60:5: note: ‘int oldcolor’ previously declared here
int oldcolor, currentcolor;
^
tftpaint_shield:48: error: redefinition of ‘int currentcolor’
int oldcolor, currentcolor;
^
/Users/Ben/Documents/Arduino/libraries/librarything/examples/adafruit_originals/tftpaint_shield/tftpaint_shield.ino:60:15: note: ‘int currentcolor’ previously declared here
int oldcolor, currentcolor;
^
/Users/Ben/Documents/Arduino/libraries/librarything/examples/adafruit_originals/tftpaint_shield/tftpaint_shield.pde: In function ‘void setup()’:
tftpaint_shield:50: error: redefinition of ‘void setup()’
void setup(void) {
^
/Users/Ben/Documents/Arduino/libraries/librarything/examples/adafruit_originals/tftpaint_shield/tftpaint_shield.ino:62:6: note: ‘void setup()’ previously defined here
void setup(void) {
^
/Users/Ben/Documents/Arduino/libraries/librarything/examples/adafruit_originals/tftpaint_shield/tftpaint_shield.pde: In function ‘void loop()’:
tftpaint_shield:91: error: redefinition of ‘void loop()’
void loop()
^
/Users/Ben/Documents/Arduino/libraries/librarything/examples/adafruit_originals/tftpaint_shield/tftpaint_shield.ino:103:6: note: ‘void loop()’ previously defined here
void loop()
^
tftpaint_shield:94: error: ‘Point’ was not declared in this scope
Point p = ts.getPoint();
^
tftpaint_shield:106: error: ‘p’ was not declared in this scope
if (p.z > MINPRESSURE && p.z < MAXPRESSURE) {
^
exit status 1
redefinition of ‘TouchScreen ts’

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.