sourceafis-java icon indicating copy to clipboard operation
sourceafis-java copied to clipboard

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

Open Dzulfikrii opened this issue 1 year ago • 1 comments

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?

Dzulfikrii avatar Jan 15 '25 05:01 Dzulfikrii

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.

robertvazan avatar Jan 15 '25 14:01 robertvazan