MSDKV5app闪退问题
已完成我们正常写了一个访问设备信息的app的dbug版本安装到手机上过上一段时间运行时闪退logcat报错 java.lang.NoClassDefFoundError: Failed resolution of: Ldji/v5/manager/interfaces/SDKManagerCallback;
我们正确的引入了SDK,我们将app卸载并重新运行就能正常运行.
安卓版本12.0
MSDK版本V5.8.0
同时我们打包了一个release版本,该版本无法安装在我们的安卓12设备上也会报错
java.lang.NoClassDefFoundError: Failed resolution of: Ldji/v5/manager/interfaces/SDKManagerCallback;
这样的错误在我们的安卓10设备上不存在.
我想问一下官方是否出现这样的问题,并给我们解释一下MSDKV5.8.0对安卓系统的支持情况
以下是我们的build.grade(:app)的相关内容
apply plugin: 'com.android.application'
android {
compileSdk 33
defaultConfig {
applicationId "com.example.mydji"
minSdkVersion 29
targetSdkVersion 35
versionCode 1
versionName "1.0"
// testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
ndk {
// 当前 MSDK 只支持 arm64-v8a 架构
abiFilters "arm64-v8a"
}
// MSDK 相关的 so 库,加上一下配置
packagingOptions {
pickFirst 'lib/arm64-v8a/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
}
// MSDK 相关的 so 库,加上一下配置
packagingOptions {
doNotStrip "*/*/libconstants.so"
doNotStrip "*/*/libdji_innertools.so"
doNotStrip "*/*/libdjibase.so"
doNotStrip "*/*/libDJICSDKCommon.so"
doNotStrip "*/*/libDJIFlySafeCore-CSDK.so"
doNotStrip "*/*/libdjifs_jni-CSDK.so"
doNotStrip "*/*/libDJIRegister.so"
doNotStrip "*/*/libdjisdk_jni.so"
doNotStrip "*/*/libDJIUpgradeCore.so"
doNotStrip "*/*/libDJIUpgradeJNI.so"
doNotStrip "*/*/libDJIWaypointV2Core-CSDK.so"
doNotStrip "*/*/libdjiwpv2-CSDK.so"
doNotStrip "*/*/libFlightRecordEngine.so"
doNotStrip "*/*/libvideo-framing.so"
doNotStrip "*/*/libwaes.so"
doNotStrip "*/*/libagora-rtsa-sdk.so"
doNotStrip "*/*/libc++.so"
doNotStrip "*/*/libc++_shared.so"
doNotStrip "*/*/libmrtc_28181.so"
doNotStrip "*/*/libmrtc_agora.so"
doNotStrip "*/*/libmrtc_core.so"
doNotStrip "*/*/libmrtc_core_jni.so"
doNotStrip "*/*/libmrtc_data.so"
doNotStrip "*/*/libmrtc_log.so"
doNotStrip "*/*/libmrtc_onvif.so"
doNotStrip "*/*/libmrtc_rtmp.so"
doNotStrip "*/*/libmrtc_rtsp.so"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20"
// implementation 'com.google.android.material:material:1.10.0'
testImplementation 'junit:junit:4.12'
// androidTestImplementation 'androidx.test.ext:junit:1.1.1'
// androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
// implementation 'androidx.compose.ui:ui-unit-android:1.6.8'
implementation 'com.dji:dji-sdk-v5-aircraft:5.8.0'
compileOnly 'com.dji:dji-sdk-v5-aircraft-provided:5.8.0'
implementation 'com.amap.api:3dmap:latest.integration'//3D地图so及jar
}
请先登录再写评论。
评论
7 条评论