Issue
I was trying to build a project and when I execute a gradle task to build, I'm receiving the folllow error:
~/Library/Android/sdk/ndk/21.2.6472646/build/core/prebuilt-library.mk:20: *** Android NDK: Assertion failure: LOCAL_MAKEFILE is not defined . Stop.
I never used NDK before, and I'm not sure where I need to start.
Apparently LOCAL_MAKEFILE is not defined, but where should I define it?
Follows below, line 20 of prebuilt-library file:
15
16 # this file is included from prebuilt-shared-library.mk or
17 # prebuilt-static-library.mk to declare prebuilt library binaries.
18 #
19
20 $(call assert-defined, LOCAL_BUILD_SCRIPT LOCAL_MAKEFILE LOCAL_PREBUILT_PREFIX LOCAL_PREBUILT_SUFFIX)
21
22 $(call check-defined-LOCAL_MODULE,$(LOCAL_BUILD_SCRIPT))
23 $(call check-LOCAL_MODULE,$(LOCAL_MAKEFILE))
24 $(call check-LOCAL_MODULE_FILENAME)
25
Somebody have any idea what's going on?
Every help is welcome!
Thanks for now!
Solution
To solve that issue, I need to remove all the NDK version and using only the 19 and 20 versions.
Answered By - JonatasTeixeira

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.