下载版本
配置下就ok
对build.gradle配置
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.yang.yin.yinyangapplication"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
ndk{
moduleName "hello"//生成so的库文件名
ldLibs "log","z","m"
abiFilters "armeabi","x86","armeabi-v7a"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.jakewharton:butterknife:7.0.0'
}
在gradle.properties 中添加一句
android.useDeprecatedNdk=true