Use The Final COCOS2D-x 3.3 Final Verison,Cannot find module with tag './prebuilt-mk' in import path

Use The Final COCOS2D-x 3.3 Final Verison,Cannot find module with tag './prebuilt-mk' in import path
0

The Selected NDK toolchain version was 4.8 !
Android NDK: WARNING: Ignoring unknown import directory: jni/…/…/cocos2d
Android NDK: WARNING: Ignoring unknown import directory: jni/…/…/cocos2d/external
Android NDK: WARNING: Ignoring unknown import directory: jni/…/…/cocos2d/cocos
Android NDK: jni/Android.mk: Cannot find module with tag ‘./prebuilt-mk’ in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
make: Entering directory /Users/stonericky/Documents/MyCppGame/proj.android' jni/Android.mk:25: *** Android NDK: Aborting. . Stop. make: Leaving directory/Users/stonericky/Documents/MyCppGame/proj.android’
Traceback (most recent call last):
File “./build_native.py”, line 159, in
build(opts.ndk_build_param,opts.android_platform,opts.build_mode)
File “./build_native.py”, line 146, in build
do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode)
File “./build_native.py”, line 82, in do_build
raise Exception(“Build dynamic library for project [ " + app_android_root + " ] fails!”)
Exception: Build dynamic library for project [ /Users/stonericky/Documents/MyCppGame/proj.android ] fails!
stonerickydeMacBook-Pro:proj.android stonericky$

I use the Final cocos2d-x 3.3 Final version… Build Android Error!.

Can Help me , thank U~

my android ndk is r9D

it’s my android.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

$(call import-add-path,$(LOCAL_PATH)/…/…/cocos2d)
$(call import-add-path,$(LOCAL_PATH)/…/…/cocos2d/external)
$(call import-add-path,$(LOCAL_PATH)/…/…/cocos2d/cocos)

LOCAL_MODULE := cocos2dcpp_shared

LOCAL_MODULE_FILENAME := libcocos2dcpp

LOCAL_SRC_FILES := hellocpp/main.cpp
…/…/Classes/AppDelegate.cpp
…/…/Classes/HelloWorldScene.cpp

LOCAL_C_INCLUDES := $(LOCAL_PATH)/…/…/Classes

LOCAL_STATIC_LIBRARIES := cocos2dx_static

LOCAL_LDLIBS += -L$(call host-path,$(NDK_ROOT)/sources/cxx-stl/llvm-libc++/libs/$(TARGET_ARCH_ABI)) -lc++_static

include $(BUILD_SHARED_LIBRARY)

$(call import-module,./prebuilt-mk)

nobody can help me?

Having the same problem, how do you solved it?

Try replacing $(call import-module,./prebuilt-mk)
with
$(call import-module,.)

See if that helps!

Comment out the line
$(call import-module,./prebuilt-mk)

at the end of Android.mk.

It should work now