dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.2.0' compile 'com.android.support.constraint:constraint-layout:1.0.1' testCompile 'junit:junit:4.12' compile files('libs/com.supermap.analyst_v811.jar') compile files('libs/com.supermap.charts_v811.jar') compile files('libs/com.supermap.data_v811.jar') compile files('libs/com.supermap.mapping_v811.jar') compile files('libs/com.supermap.mdatacollector_v811.jar') compile files('libs/com.supermap.messagequeue_v811.jar') compile files('libs/com.supermap.navigation_v811.jar') compile files('libs/com.supermap.plot_v811.jar') compile files('libs/com.supermap.realspace_v811.jar') compile files('libs/com.supermap.services_v811.jar') compile files('libs/com.supermap.track_v811.jar') }
这是在build.gradle 里的depengencies,代码什么的都是照着帮助文档来写的,许可是昨天才申请好的,
用的版本是8c,
请问这是哪里出问题了?
可以从以下方法排查:
1、libs中添加的引用jar包和so依赖库是否添加了;
2、在Module的build.gradle里加上jni的sourceSets配置:jniLibs.srcDirs = ['libs'],代码:
sourceSets { main { jniLibs.srcDirs = ['libs'] } }