Android 6.0运行时权限之PermissionsDispatcher的使用中

在使用PermissionsDispatcher的过程中,Android 6.0权限运行时,第三方框架

Now you can use the class that generated by annotation processing.

In this case the class name is MainActivityPermissionsDispatcher.

It has methods ends with WithCheck and onRequestPermissionsResult.

Only you have to do is delegating the work to them.

你可以使用注解产生的类,名字叫做MainActivityPermissionsDispatcher,但是,一步一步操作

之后并没有发现这个类,也就是没有动态的产生,这是什么原因,有遇到的请会帮助下,谢谢。

阅读 8k
2 个回答

我试过了 @RuntimePermissions @NeedsPermission 等这几个权限加上后 一定要重新build一下才能生成那个类的

新手上路,请多包涵

请问你的问题解决了吗?我也遇到了这个问题,想请教您怎么处理

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题