diff --git a/core/binary.mk b/core/binary.mk index 8efea6589..e8f1d800e 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -350,6 +350,10 @@ all_objects := \ LOCAL_C_INCLUDES += $(TOPDIR)$(LOCAL_PATH) $(intermediates) $(base_intermediates) +ifndef LOCAL_NDK_VERSION + LOCAL_C_INCLUDES += $(JNI_H_INCLUDE) +endif + $(all_objects) : | $(LOCAL_GENERATED_SOURCES) ALL_C_CPP_ETC_OBJECTS += $(all_objects)