i am beginner i am facing with that problem that cannot resolve symbol length_long ,i used Android studio 2.2.3 and i change my all versions in grid, but still the same problem
[code]private void showLocationSettings() { Snackbar snackbar = Snackbar.make(mainCoordinatorLayout, "Location Error: GPS Disabled!", Snackbar.LENGTH_LONG) .setAction("Enable", new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS)); } }); snackbar.setActionTextColor(Color.RED); snackbar.setDuration(Snackbar.LENGTH_INDEFINITE);[/code]