在Android Studio中新建项目时出现了以下问题:Your android sdk is out of date or is missing templates. Please ensure you are using SDK version 22 or later.其实这是因为旧的SDK已经在你以前的Eclipse ADT Plugin中安装好了,我们只需要更新Android SDK Tool到版本22或更高即可,并将其引用在Android Studio中就行了,至于更新Android…
继上一篇,我们在native接口中编写了2个方法 生成的相应.h文件 这时,需要我们自己去完善.c文件 /* DO NOT EDIT THIS FILE - it is machine generated */#include <jni.h>#include <android/log.h>#include <stdio.h>#include <string.h>#include <stdlib.h> /* Header for class led…