当前位置:网站首页>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
边栏推荐
- ThinkPHP kernel development blind box mall source code v2 0 docking easy payment / Alibaba cloud SMS / qiniu cloud storage
- 011_ Redistemplate operation hash
- 假如404页面是这样的 | 每日趣闻
- 关于局域网浅谈
- C standard library - < time h>
- php 2022年4月20面试题整理
- Latin goat (20204-2022) - daily question 1
- What are the test steps of dynamic proxy IP?
- 中金财富跟中金公司是一家公司吗,安全吗
- 002_ Redis_ Common operation commands of string type
猜你喜欢
![App optimization and advanced scoreboard Part 2 [Mui + flask + mongodb]](/img/86/77b67fd28d2583e12f397430a9a62a.png)
App optimization and advanced scoreboard Part 2 [Mui + flask + mongodb]

VMware virtual machine installation openwrt as side route single arm route img image to vmdk

Introduction to micro build low code zero Foundation (lesson 2)

【无标题】

leetcode:27. 移除元素【count remove小操作】

校园转转二手市场源码

007_Redis_Jedis连接池

What are the common proxy IP problems?

【Chrome扩展程序】content_script的跨域问题

Is it better to use a physical machine or a virtual machine to build a website?
随机推荐
Introduction to micro build low code zero Foundation (lesson 2)
89 logistic回歸用戶畫像用戶響應度預測
What is a dial-up server and what is its use?
Use of push() and pop()
Numerical remapping method (remap)
关于局域网浅谈
Network jitter tool clumsy
Dynamic memory management
[assembly language] understand "stack" from the lowest point of view
Find the largest number of two-dimensional arrays
Usage of vector common interface
PTA: 浪漫倒影 [二叉树重建] [深度优先遍历]
What is a proxy IP pool and how to build it?
New book recommendation - IPv6 technology and application (Ruijie version)
JSP page nesting
007_ Redis_ Jedis connection pool
013_基于Session实现短信验证码登录流程分析
Tp6 Alibaba cloud SMS window reports curl error 60: SSL certificate problem: unable to get local issuer certificate
Latin goat (20204-2022) - daily question 1
002_ Redis_ Common operation commands of string type