flutter_qrcode_reader: Failed to create MD5 hash
It is possible that I am screwing things up, but I am getting this error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':qrcode_reader:compileReleaseJavaWithJavac'.
> Failed to create MD5 hash for file 'C:\Users\tsort\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\qrcode_reader-0.1.1\android\tmplibs\flutter.jar'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Finished with error: Gradle build failed: 1
Good luck developing the plugin!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 18 (8 by maintainers)
That’s what I thought, that it could not be the permission due the API used, I even did the apk analysis to check that , but it looks like it really is.
Can you check if it crashes with the last commit?
That’s actually great, it was the permission them.
The flow to request the permission and the user having to click it again actually makes sense, there’s probably some android callback that tells me the permission was granted but I’ll just send back an error that there was no permission.
I’ll update it now to return an error in the result and when I have time move the permission logic to the example and document it, or make the plugin handle the permission an option since I have no idea how this should be handled in flutter.
I’m sorry I haven’t had time in the last days. I did took a look again and still can’t run anything from flutter in the emulator.
Since I’m almost sure this is a camera permission thing, and could not find any other examples in the flutter plugins I gave a go to add the permissions asking dialog without being able to really test or any way to be sure it would work.
Could you please update your sources and take a look? I wish I could be more helpful here but now is what I can do sorry