先将armeabi/libmsc.so文件一并拷贝到libs文件夹下,在app目录下的build.gradle文件,最后添加sourceSets属性。

apply plugin: 'com.android.application'android {    compileSdkVersion 22    buildToolsVersion "22.0.1"    defaultConfig {        applicationId "com.example.xxx.testspeakme"        minSdkVersion 15        targetSdkVersion 22        versionCode 1        versionName "1.0"    }    buildTypes {        release {            minifyEnabled false            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'        }    }    sourceSets {        main{            jniLibs.srcDirs = ['libs']        }    }}dependencies {    compile fileTree(dir: 'libs', include: ['*.jar'])    testCompile 'junit:junit:4.12'    compile 'com.android.support:appcompat-v7:22.2.1'}

}

更多相关文章

  1. android中使用arial字体
  2. Android(安卓)getResources的作用和需要注意点
  3. android GPS HAL 回调函数实现
  4. Android.mk简要说明
  5. android 之 GridView
  6. Android(安卓)动画实现
  7. 如何搭建android环境---windows系统环境里。
  8. Android(安卓)DropboxManager介绍
  9. android studio 解决65536的方法(64K)

随机推荐

  1. 给R语言RStudio添加阿里云镜像源
  2. Android快速开发-选项卡
  3. Android下pm 命令详解
  4. android linux 基础知识总结
  5. Android:java.lang.SecurityException: P
  6. Android按钮事件响应顺序
  7. Android(安卓)P签名机制和系统权限
  8. Android成长之路-Android组件_EditView例
  9. 遇到的Android(安卓)eclipse 问题
  10. android.os.NetworkOnMainThreadExceptio