如何为Android NDK的gradle构建文件中指定NDK
1个回答
2017-09-02
展开全部
applyplugin:'com.android.model.application'model{android{compileSdkVersion=22buildToolsVersion="23.0.1"defaultConfig.with{applicationId="com.kltz88.car.jnidemo"minSdkVersion.apiLevel=14targetSdkVersion.apiLevel=22versionCode=1versionName="1.0"}tasks.withType(JavaCompile){//指定编译JDK版本sourceCompatibility=JavaVersion.VERSION_1_7targetCompatibility=JavaVersion.VERSION_1_7}}android.ndk{moduleName="test"ldLibs+="log"abiFilters+="armeabi"abiFilters+="armeabi-v7a"abiFilters+="x86"}android.buildTypes{release{minifyEnabled=falseproguardFiles+=file('proguard-rules.pro')}}}dependencies{compilefileTree(dir:'libs',include:['*.jar'])compile'com.android.support:appcompat-v7:22.2.1'}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询