问题如上图所示,当我调用该功能(原生)报错,并退出程序。
我在Module中已经引入so文件,在本地项目中是可以找到资源的
build.gradle也已经配置好了相关参数,如下代码
apply plugin: 'com.android.library'
android {
compileSdkVersion 30
buildToolsVersion "29.0.3"
defaultConfig {
minSdkVersion 19
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
sourceSets{
main(){
jniLibs.srcDirs = ['libs']
multiDexEnabled true
ndk {
abiFilters 'armeabi'
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
repositories {
flatDir {
dirs 'libs'
dependencies {
compileOnly fileTree(dir: 'libs', include: ['*.jar'])
compileOnly fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar'])
//noinspection GradleCompatible
compileOnly "com.android.support:recyclerview-v7:28.0.0"
//noinspection GradleCompatible
compileOnly "com.android.support:support-v4:28.0.0"
//noinspection GradleCompatible
compileOnly "com.android.support:appcompat-v7:28.0.0"
implementation 'com.alibaba:fastjson:1.1.46.android'
implementation 'com.facebook.fresco:fresco:1.13.0'
但是,依旧无法实现功能(录制小视频的功能,但界面需要高度自定义设计,参数设置)