Call requires permission which may be rejected by user: code should explicitly check to see if permi

Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityException


Call requires permission which may be rejected by user: code should explicitly check to see if permi

不影响编译但一直有错,按照点击打开链接的方法,加了

if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED)

就OK了

Call requires permission which may be rejected by user: code should explicitly check to see if permi