diff --git a/tensorflow/lite/java/src/main/native/BUILD b/tensorflow/lite/java/src/main/native/BUILD index aba288a314d..75e32dfc2a9 100644 --- a/tensorflow/lite/java/src/main/native/BUILD +++ b/tensorflow/lite/java/src/main/native/BUILD @@ -51,6 +51,7 @@ cc_library( deps = [ ":native_framework_only", "//tensorflow/lite:framework", + "//tensorflow/lite/core/api", "//tensorflow/lite/kernels:builtin_ops", ], alwayslink = 1, diff --git a/tensorflow/lite/java/src/main/native/builtin_ops_jni.cc b/tensorflow/lite/java/src/main/native/builtin_ops_jni.cc index 95bc0a4fa8d..aa654046ef4 100644 --- a/tensorflow/lite/java/src/main/native/builtin_ops_jni.cc +++ b/tensorflow/lite/java/src/main/native/builtin_ops_jni.cc @@ -13,6 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ +#include + +#include "tensorflow/lite/core/api/op_resolver.h" #include "tensorflow/lite/kernels/register.h" namespace tflite {