当前位置:网站首页>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
边栏推荐
- Shardingsphere read write separation
- A simple and open source navigation website source code
- 【Chrome扩展程序】content_script的跨域问题
- Kubernetes cluster installation based on Kirin SP10 server version
- Synchronized锁及其膨胀
- 关于局域网浅谈
- 006_redis_jedis快速入门
- Dynamic memory management
- Shardingsphere broadcast table and binding table
- The importance of ERP integration to the improvement of the company's system
猜你喜欢

Shardingsphere read write separation

010_ StringRedisTemplate

What is a dial-up server and what is its use?

Wechat public platform test number application, authorized login function and single sign on using hbuilder X and wechat developer tools

手写内存池以及原理代码分析【C语言】

005_redis_set集合

Is it better to use a physical machine or a virtual machine to build a website?

How does Axure set the content of the text box to the current date when the page is loaded
![PTA: Romantic reflection [binary tree reconstruction] [depth first traversal]](/img/ae/a6681df6c3992c7fd588334623901c.png)
PTA: Romantic reflection [binary tree reconstruction] [depth first traversal]

Analyze the advantages and disadvantages of tunnel proxy IP.
随机推荐
Why is one plus one equal to two
PTA: 浪漫倒影 [二叉树重建] [深度优先遍历]
What is an API interface?
类初始化和实例初始化面试题
What are the test steps of dynamic proxy IP?
Introduction to micro build low code zero Foundation (lesson 2)
012_ Access denied for user ‘root‘@‘localhost‘ (using password: YES)
Is CICC fortune a company with CICC? Is it safe
tp6阿里云短信 window 报 cURL error 60: SSL certificate problem: unable to get local issuer certificate
Summary of I / O knowledge points
89 logistic regression user portrait user response prediction
On LAN
都是做全屋智能的,Aqara和HomeKit到底有什么不同?
Wechat public platform test number application, authorized login function and single sign on using hbuilder X and wechat developer tools
【dpdk】10. Dpdk DNS learning notes
Redis memory recycling strategy
Leetcode40 - total number of combinations II
005_redis_set集合
中金财富跟中金公司是一家公司吗,安全吗
002_Redis_String类型常见的操作命令