Almost everything in my activity is working fine, except for wherever TAG is referenced. TAG gets a red line and says: \'TAG\' has private access
TAG
\'TAG\' has private access
try the following
private static final String TAG = MainActivity.class.getSimpleName();
You can use this field in your any Activity or Fragment.