Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with SourceAFIS Library in Flutter Plugin - "SourceAFIS resource not found: version.txt" #70

Open
Dzulfikrii opened this issue Jan 15, 2025 · 1 comment

Comments

@Dzulfikrii
Copy link

I am currently developing a Flutter plugin that utilizes the SourceAFIS fingerprint library. While the integration works perfectly in debug mode, I encounter an issue in release mode. The error message I receive is:

Caused by: java.lang.IllegalStateException: SourceAFIS resource not found: version.txt. Use proper dependency management tool.

any idea how to solve this?

@robertvazan
Copy link
Owner

It's not just version.txt. Future version of SourceAFIS that is currently in development will make heavy use of resources. While you could just comment out the version-related functionality in current public release and rebuild the library, you will eventually have to sort out resource access to support future versions of SourceAFIS. I have no experience with Flutter, so I wouldn't be able to guess what the problem is, but this is clearly some issue with dependency management. Try to make a simple project with a resource. Can you access it? Then try to make a small private library with some resource. Can you still access it? What if you turn on JPMS? You will have to debug this. If you find out what is causing this, please post the solution here to help others with the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants