开发者

Android NDK: Assertion failure: TARGET_PLATFORM is not defined

开发者 https://www.devze.com 2023-04-01 22:45 出处:网络
When using NDK r5b, when I do a build in my jni directory using $NDK_DIR/ndk-build it works fine.But When I switch to r6b (just by setting $NDK_DIR differently) and run that same command,I get开发

When using NDK r5b, when I do a build in my jni directory using

$NDK_DIR/ndk-build 

it works fine. But When I switch to r6b (just by setting $NDK_DIR differently) and run that same command, I get开发者_C百科

/usr/local/android-ndk-r6b/build/core/setup-toolchain.mk:20: *** Android NDK:  Assertion failure: TARGET_PLATFORM is not defined    .  Stop.

What do I need to do differently in r6b that I didn't need to do in r5b?


The solution is to add this line to jni/Application.mk:

APP_PLATFORM := android-8

This is new to r6b. (Not required in r5b or r6, just r6b.)

0

精彩评论

暂无评论...
验证码 换一张
取 消