Permissionsdispatcher: MainActivityPermissionsDispatcher is not generated after build

Created on 29 May 2016  路  19Comments  路  Source: permissions-dispatcher/PermissionsDispatcher

I followed the instructions but the MainActivityPermissionsDispatcher is never created. I cant use this Activity after the build process.

Most helpful comment

oh I'm get mistake!
Please use like this instruction:
[Your Activity Name]PermissionsDispatcher

Ha ha ha.

All 19 comments

Please check your gradle setting, and try sample module.

Yes, that is what i did and the sample project also did not create the MainActivityPermissionsDispatcher. As i said i followed the instructions and did 1:1 what was to do.

Have you rebuild project?

Before i used the MainActivityPermissionsDispatcher. I implmemented everything needed before MainActivityPermissionsDispatcher, i rebuild project and after tried to access MainActivityPermissionsDispatcher but the class could never be found.

Rebuild after adding MainActivityPermissionsDispatcher (or @RuntimePermissions)

Why "adding" the MainActivityPermissionsDispatcher should get created automatically after you build the project using the annotations.......

And if it does not help, could you give us a sample project?

The sample project is provided on this github repository.

The sample project definitely 100% no-doubt works perfectly fine. Are you on Android Studio? What version? What version of Gradle are you building with?

Well, the sample project compile successfully on all of my workstation. You need to give us your sample project that reproduce this issue.

Android Studio 2.1.1
Gradle Version 2.1.0

I read that in some cases android studio cant create classes from annotations but i have no idea what to do about that and nothing was mentioned in the instructions.

It seems a bug in Android Studio, not PermissionsDispatcher. Have you used other annotation processing library?

That's very weird. Do you use Instant Run? About 90% of my build-related issues in the past weeks all came down to disabling Instant Run.

@aurae @shiraji Thank you for your help!

oh I'm get mistake!
Please use like this instruction:
[Your Activity Name]PermissionsDispatcher

Ha ha ha.

@a-jahanshahlo I did! https://github.com/hotchemi/PermissionsDispatcher/blob/master/README.md#2-delegate-to-generated-class

@hotchemi thank you to your link.
unfortunately I'm not seen above link before.
I'm know about current project on this link:
http://guides.codepath.com/android/Managing-Runtime-Permissions-with-PermissionsDispatcher

Thanks Again.

@a-jahanshahlo Cool! But it's not under our management...馃槄 Can you open an issue there?

馃槄馃槄馃槄馃槄馃槄馃槄馃槄馃槄馃槄馃槄馃槄馃槄馃槄馃槄v

Was this page helpful?
0 / 5 - 0 ratings