android studio 工具中需要使用jni接口的需要增加红色部分的配置。 apply plugin: 'com.android.application'
android { compileSdkVersion 23 buildToolsVersion "27.0.3"
defaultConfig { applicationId "com.androidmov.tr069" minSdkVersion 8 targetSdkVersion 24
ndk { moduleName "syxml" } }
buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } sourceSets{ main{ //jniLibs.srcDirs = ['src/main/jniLibs/'] jni.srcDirs = [] } } }
dependencies { androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:support-v4:23.4.0' compile files('libs/AmtDataSDKV1.0.1.jar') compile files('libs/DevInfoManager.jar') implementation 'com.google.code.gson:gson:2.2.4' compile 'com.squareup.okhttp3:okhttp:3.8.0' implementation files('libs/jackson-all-1.9.0.jar') }
|