Cannot resolve Manifest.permission.ACCESS_FINE_LOCATION

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

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

 
12条回答
  •  醉梦人生
    2020-12-04 23:58

    When you type "Manifest", Android Studio should suggest you to choose a few options of Manifest. You should choose the one start android instead of the name of your project.

    If you access the reference of Manifest.java and you can find there is only 1-2 lines in "Permission" class, then you are referencing the wrong manifest class.

提交回复
热议问题