I know this question was asked before but I tried all existing solutions and none of them solved the issue.
I am trying to create a simple hello world native app (binary not apk) but I keep getting this error message when I try to compile using "ndk-build"
Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := main.out
LOCAL_SRC_FILES := main.cpp
include $(BUILD_EXECUTABLE)
Application.mk
APP_ABI := x86
APP_PLATFORM := android-25
APP_STL := stlport_static
APP_BUILD_SCRIPT := Android.mk
main.cpp
#include <iostream.h>
main()
{
std::cout << "Hello World!";
return 0;
}
here is the structure for my folder
.
└── jni
├── Android.mk
├── Application.mk
└── main.cpp