当前位置: 首页 > news >正文

html网站地图生成抖音seo怎么做的

html网站地图生成,抖音seo怎么做的,wordpress页面与文章,百度权重排名分析JNI学习大纲 一、JNI编程入门 二、Android Studio中使用cmake开发JNI实战 第一章节我们介绍了JNI的开发步骤,那这一章节我们就开始在Android Studio中实战一下吧,Lets Start。 1. Android Studio中安装CMake插件 AS中菜单栏选择Tools>SDK Manager在…

JNI学习大纲

一、JNI编程入门

二、Android Studio中使用cmake开发JNI实战

第一章节我们介绍了JNI的开发步骤,那这一章节我们就开始在Android Studio中实战一下吧,Let's Start。

1. Android Studio中安装CMake插件

  • AS中菜单栏选择Tools>SDK Manager
  • 在Android SDK中选择SDK Tools,安装CMake和NDK。

2. JNI开发

2.1 编写JNI代码

在项目工程下的src/main创建cpp目录,编写native-lib.cpp(JNI代码实现文件)和对应的CMakeLists.txt(JNI代码编译配置)。

// native-lib.cpp#include <jni.h>
#include <android/log.h>
#include <string>extern "C" JNIEXPORT jstring JNICALL
Java_com_jni_test_JNITestService_stringByJNI(JNIEnv *env, jobject /* this */) {std::string hello = "hello JNI from C++";return env->NewStringUTF(hello.c_str());
}
// CMakeLists.txt# Sets the minimum version of CMake required to build the native library.
cmake_minimum_required(VERSION 3.10.2)# Declares and names the project.
project("jnitest")# Creates and names a library, sets it as either STATIC
# or SHARED, and provides the relative paths to its source code.
# You can define multiple libraries, and CMake builds them for you.
# Gradle automatically packages shared libraries with your APK.
set(project_root_dir ${CMAKE_CURRENT_SOURCE_DIR}/../../../..)
include_directories(${project_root_dir}/common)add_library( # Sets the name of the library.jnitest# Sets the library as a shared library.SHARED# Provides a relative path to your source file(s).native-lib.cpp
)# Searches for a specified prebuilt library and stores the path as a
# variable. Because CMake includes system libraries in the search path by
# default, you only need to specify the name of the public NDK library
# you want to add. CMake verifies that the library exists before
# completing its build.find_library( # Sets the name of the path variable.log-lib# Specifies the name of the NDK library that you want CMake to locate.log
)# Specifies libraries CMake should link to your target library. You
# can link multiple libraries, such as libraries you define in this
# build script, prebuilt third-party libraries, or system libraries.target_link_libraries( # Specifies the target library.jnitest# Links the target library to the log library included in the NDK.${log-lib}
)

2.2 gradle中编译配置

android {...defaultConfig {...externalNativeBuild {// 设置生成so的arm架构cmake {cppFlags ''abiFilters 'arm64-v8a'}}}externalNativeBuild {cmake {// 编译path file('src/main/cpp/CMakeLists.txt')version '3.10.2'}}
}

http://www.yidumall.com/news/41498.html

相关文章:

  • 有哪些做实验的参考网站常州网站建设优化
  • 中小学学校网站建设营销推广ppt
  • 深圳网站维护公司南通seo网站优化软件
  • 做电商网站有什么用2345网址导航下载桌面
  • 网站建设合同谷歌收录提交入口
  • 上海网站建设 知名做百度搜索排名靠前
  • 建设网站的目标和作用做推广网络
  • 来年做哪个网站致富百度联系方式人工客服
  • 虎门今天新增疫情搜索引擎优化效果
  • 美食网站开发现状seo优化网络公司
  • 网站联动是什么意思海洋网络推广效果
  • 网站变exe文件怎么做营销网站优化推广
  • web网站如何用div做日历客户管理软件
  • 做站长建不好网站最好的营销策划公司
  • wordpress博客xiuseo高效优化
  • WordPress百度智能小程序seo站外优化平台
  • 苹果id钓鱼网站怎么做线上电脑培训班
  • 昆山网站建设公司发表文章的平台有哪些
  • 天长街道两学一做网站建设网站费用
  • 网页提示站点不安全网络市场调研的五个步骤
  • 一个人做的网站做什么好搜索引擎优化包括
  • 动态网站建设论文公司如何建立网站
  • 门户网站维护方案广州网络推广定制
  • 化妆品网站开发步骤卫星电视安装视频
  • 短视频seo公司北京seo优化哪家好
  • 网站怎么做房源安徽百度seo公司
  • 一个网站要注意哪些问题专业网络推广机构
  • 国内做的好网站有哪些北京seo优化排名
  • 唐山网站建设优化seo专业培训课程
  • 做网站前端用什么北京seo优化哪家好