当前位置:网站首页>So library dependency
So library dependency
2022-04-23 02:15:00 【Laugh three little_ Creat】
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libtestAdd
# Android N Start ,Google It's contracting so Dependent permissions of the library .
# Only system/app system/priv-app Applications under can rely on .
# data/app The installed application under cannot load some so Library , such as :libc++.so
# Add the following two lines of configuration to represent so Libraries can depend on systems so library
LOCAL_NDK_STL_VARIANT := c++_static
LOCAL_SDK_VERSION := current
LOCAL_SRC_FILES := src/myAdd.cpp
LOCAL_MODULE_PATH_64 := $(LOCAL_PATH)/lib # Be careful LOCAL_MODULE_PATH_64 hinder _64, Without compilation 64 Bit will report an error
include $(BUILD_SHARED_LIBRARY)
# Android N Start ,Google It's contracting so Dependent permissions of the library . Only system/app system/priv-app Applications under can rely on .data/app The installed application under cannot load some so Library , such as :libc++.so
So you need to add the following two lines :
LOCAL_NDK_STL_VARIANT := c++_static
LOCAL_SDK_VERSION := current
Be careful : Use of third parties so Prerequisites for Library :
1、 The third party so Whether the library depends on other so library
2、 The third party so Library running cup framework ( Such as :mips64/x86/mips/x86_64/arm64-v8a/armeabi/armeabi-v7a)
3、 The third party so The header file of the library (.h)
Sample code :
Baidu links Extraction code :y4cn
Uncle , Give me a coin

版权声明
本文为[Laugh three little_ Creat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230212040701.html
边栏推荐
- Synchronized锁及其膨胀
- hyperscan --- 1
- leetcode:27. 移除元素【count remove小操作】
- [hands on learning] network depth v2.1 Sequence model
- Flink real-time data warehouse project - Design and implementation of DWS layer
- Consider defining a bean of type 'com netflix. discovery. AbstractDiscoveryClientOptionalArgs‘
- 关于局域网浅谈
- 002_ Redis_ Common operation commands of string type
- Daily question (April 22, 2022) - rotation function
- Tp6 Alibaba Cloud SMS Window message Curl Error 60: SSL Certificate Problem: Unable to get local issuer Certificate
猜你喜欢
随机推荐
每日一题冲刺大厂第十六天 NOIP普及组 三国游戏
wordpress 调用指定页面内容详解2 get_children()
Usage of vector common interface
智能辅助功能丰富,思皓X6安全配置曝光:将于4月23日预售
Is CICC fortune a state-owned enterprise and is it safe to open an account
手写内存池以及原理代码分析【C语言】
OJ daily practice - Finish
Common formatting problems after word writing
【ValueError: math domain error】
【Chrome扩展程序】content_script的跨域问题
Use of push() and pop()
不断下沉的咖啡业,是虚假的繁荣还是破局的前夜?
[hands on learning] network depth v2.1 Sequence model
Open3d point cloud processing
Chinese scientists reveal a new mechanism for breaking through the bottleneck of rice yield
What is an API interface?
简洁开源的一款导航网站源码
PTA: 点赞狂魔
数仓建表111111
Esp32 message queue using FreeRTOS



![leetcode:27. Remove element [count remove]](/img/af/e5cd9ef8dc43aab4ddf016600ffc4a.png)





