Can't find libmrtc_core_jni.so
已完成When I was using ILiveStreamManager.addLiveStreamStatusListener, logcat:
MRTCController Couldn't load libJNI_ERR returned from JNI_OnLoad in "/data/app/com.chichen.smartdrone.client-L8DD1RMwCuA6Ri0YtTxXtQ==/base.apk!/lib/arm64-v8a/libmrtc_core_jni.so"
And my build.gradle.kts:
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("org.jetbrains.kotlin.kapt")
}
android {
namespace = "com.chichen.smartdrone.sdk"
compileSdk = 35
defaultConfig {
minSdk = 23
consumerProguardFiles("consumer-rules.pro")
ndk {
//noinspection ChromeOsAbiSupport
abiFilters += "arm64-v8a"
}
}
lintOptions {
isCheckReleaseBuilds = false
isAbortOnError = false
}
packagingOptions {
jniLibs {
useLegacyPackaging = true
pickFirsts += setOf(
"lib/arm64-v8a/libc++_shared.so",
"lib/armeabi-v7a/libc++_shared.so"
)
}
doNotStrip += setOf(
"*/*/libconstants.so",
"*/*/libdji_innertools.so",
"*/*/libdjibase.so",
"*/*/libDJICSDKCommon.so",
"*/*/libDJIFlySafeCore-CSDK.so",
"*/*/libdjifs_jni-CSDK.so",
"*/*/libDJIRegister.so",
"*/*/libdjisdk_jni.so",
"*/*/libDJIUpgradeCore.so",
"*/*/libDJIUpgradeJNI.so",
"*/*/libDJIWaypointV2Core-CSDK.so",
"*/*/libdjiwpv2-CSDK.so",
"*/*/libFlightRecordEngine.so",
"*/*/libvideo-framing.so",
"*/*/libwaes.so",
"*/*/libagora-rtsa-sdk.so",
"*/*/libc++.so",
"*/*/libc++_shared.so",
"*/*/libmrtc_28181.so",
"*/*/libmrtc_agora.so",
"*/*/libmrtc_core.so",
"*/*/libmrtc_core_jni.so",
"*/*/libmrtc_data.so",
"*/*/libmrtc_log.so",
"*/*/libmrtc_onvif.so",
"*/*/libmrtc_rtmp.so",
"*/*/libmrtc_rtsp.so",
)
}
buildTypes {
release {
isMinifyEnabled = true
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
kotlinOptions {
jvmTarget = "21"
}
}
dependencies {
implementation("androidx.core:core-ktx:1.15.0")
implementation("androidx.appcompat:appcompat:1.7.0")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.2.1")
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
implementation("com.dji:dji-sdk-v5-aircraft:5.12.0")
compileOnly("com.dji:dji-sdk-v5-aircraft-provided:5.12.0")
runtimeOnly("com.dji:dji-sdk-v5-networkImp:5.12.0")
}
But in my app-debug.apk, I can find this native library file.
-
Dear developers, Hello, thank you for contacting DJI Innovation. May I ask if you can use the officially provided sample for installation and debugging? If the live broadcast function of sample is not affected, can you give us a path for reproducing the live broadcast problem? Thank you for your email and have a nice life! Best Regards, Dji innovation SDK technical support
请先登录再写评论。
评论
1 条评论