Cannot resolve Manifest.permission.ACCESS_FINE_LOCATION

前端 未结 12 1016
天涯浪人
天涯浪人 2020-12-04 23:13

When adding permissions to my manifest file, the below xml works.

 
12条回答
  •  心在旅途
    2020-12-05 00:01

    I had a similar problem where used;

    ContextCompat.checkSelfPermission(MainActivity.this,Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED 
    

    where it could not resolve symbol READ_CONTACTS.

    However on using;

    import android.Manifest;
    

    It started to recognize READ_CONTACT

提交回复
热议问题