我有这样的代码不能解析符号ACCESS_FINE_LOCATION
if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
在清单中,我已经包括此权限
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
但我得到错误cannot resolve symbol 'ACCESS_FINE_LOCATION'
如何解决这个问题呢?
它在这里也得到解决: http://stackoverflow.com/questions/34139048/cannot-resolve-manifest-permission-access-fine-location –