解决ndk工具编译so库问题
问题描述
使用ndk-build编译so库的时候,控制台会报
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
F:\Sdk\ndk-bundle\build\..\build\core\build-local.mk:151: *** Android NDK: Aborting . Stop.
解决办法
见文献1
1 | //在<工程path>/app目录 |
问题描述
Android NDK: WARNING: APP_PLATFORM android-16 is higher than android:minSdkVersion 1 in G:/android_project/PlatformService_X5R/app/src/main/AndroidManifest.xml. NDK binaries will not be compatible with devices older than android-1.6
See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.
解决办法
在Application.mk文件中加
APP_PLATFORM := android-16
参考文献
此文章版权归Jack Ou所有,如有转载,请註明来自原作者