当前位置:网站首页>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
边栏推荐
- 小程序 canvas 画布半圆环
- R language advanced | generalized vector and attribute analysis
- Daily question (April 22, 2022) - rotation function
- 智能辅助功能丰富,思皓X6安全配置曝光:将于4月23日预售
- [assembly language] understand "stack" from the lowest point of view
- Is the sinking coffee industry a false prosperity or the eve of a broken situation?
- 005_redis_set集合
- 012_ Access denied for user ‘root‘@‘localhost‘ (using password: YES)
- Thinkphp内核开发盲盒商城源码v2.0 对接易支付/阿里云短信/七牛云存储
- Is it better to use a physical machine or a virtual machine to build a website?
猜你喜欢
LeetCode 447. Number of boomerangs (permutation and combination problem)
Some tips for using proxy IP.
Introduction to esp32 Bluetooth controller API
How many steps are there from open source enthusiasts to Apache directors?
小程序 canvas 画布半圆环
Wechat public platform test number application, authorized login function and single sign on using hbuilder X and wechat developer tools
What businesses use physical servers?
Nanny level tutorial on building personal home page (II)
[assembly language] understand "stack" from the lowest point of view
每日一题(2022-04-21)——山羊拉丁文
随机推荐
从0开始开发一个chrome插件(2)
从开源爱好者到 Apache 董事,一共分几步?
001_ Redis set survival time
C语言中*与&的用法与区别 以及关键字static和volatile 的含义
89 logistic回歸用戶畫像用戶響應度預測
005_ redis_ Set set
Go language ⌈ mutex and state coordination ⌋
[assembly language] understand "stack" from the lowest point of view
ThinkPHP kernel development blind box mall source code v2 0 docking easy payment / Alibaba cloud SMS / qiniu cloud storage
What businesses use physical servers?
007_Redis_Jedis连接池
leetcode:27. Remove element [count remove]
Gray scale range corresponding to colors (red, yellow, green, blue, purple, pink, brick red and magenta) in HSV color space
Startup of openstack service
中金财富跟中金公司是一家公司吗,安全吗
JSP page nesting
小程序 canvas 画布半圆环
Lane cross domain problem
What is a proxy IP pool and how to build it?
leetcode:27. 移除元素【count remove小操作】