I'm attempting to build a simple Android app based on the TensorFlow Android demo; however the model I'm using requires an kernel Op not included by default with the TensorFlow aar. This led me down the path of compiling the libraries from source.
I've gotten the apk to build through gradle, using bazel as the native build tool; however, whenever I try and load the model from a
/usr/local/bin/bazel build -c opt
It turns out this was an issue with the TensorFlow commit I was working off. When I merged in the most recent changes from the upstream TensorFlow repo the error went away.
I can't imagine anyone else will run into this issue; but if you do, or you run into some similarly obscure error, updating to a newer version of TensorFlow might be your solution. Alternatively, you could choose to be smarter than me, and build off of a stable release version of the library.