dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
991 stars 580 forks source link

SDKManagerCallback not found error on Samsung SM-T725 #585

Open eyalmnm opened 4 years ago

eyalmnm commented 4 years ago

When trying to run my app on SamSung SM-T725 i got an error, ClassNotFoundError DJISDKManager.SDKMAnagerCallback. The same app is running perfectly on Xiaomi MI 5s device (Android 8), but it failed on Samsung SM-T725 (Android 9) My App configuration is

`apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions'

android { compileSdkVersion 29

defaultConfig {
    applicationId "com.em_projects.dronecontroller"
    minSdkVersion 21  // Do not change forever
    targetSdkVersion 29
    versionCode 1
    versionName "1.0"
    multiDexEnabled true

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}

packagingOptions{
    doNotStrip "*/*/libdjivideo.so"
    doNotStrip "*/*/libSDKRelativeJNI.so"
    doNotStrip "*/*/libFlyForbid.so"
    doNotStrip "*/*/libduml_vision_bokeh.so"
    doNotStrip "*/*/libyuv2.so"
    doNotStrip "*/*/libGroudStation.so"
    doNotStrip "*/*/libFRCorkscrew.so"
    doNotStrip "*/*/libUpgradeVerify.so"
    doNotStrip "*/*/libFR.so"
    exclude 'META-INF/rxjava.properties'
}

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

}

dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

testImplementation 'junit:junit:4.12'

// JDI Libraries  == :dJISDKLIB
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation ('com.dji:dji-sdk:4.12')
compileOnly ('com.dji:dji-sdk-provided:4.12')
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'androidx.core:core-ktx:1.3.1'
implementation 'androidx.appcompat:appcompat:1.1.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

// DJI UX
implementation ('com.dji:dji-uxsdk:4.11')

// Multidex
implementation 'com.android.support:multidex:1.0.3'

// Crash Report
implementation 'com.balsikandar.android:crashreporter:1.1.0'

}`

dji-dev commented 4 years ago

Agent comment from Lisa Fedane in Zendesk ticket #37881:

The Android device needs to met the following requirements listed in this forum: https://forum.dji.com/forum.php?mod=viewthread&tid=217861

You are obviously using an Android OS version that should work, so you should find out if the SamSung SM-T725 processor is running architecture x86 and if it is, then the device is not compatible with our SDK.

Here are some tips on how to find out:

How to find ARM processor version on android device? https://stackoverflow.com/questions/6630386/how-to-find-arm-processor-version-on-android-device/6630402#6630402 How to Find Your Android Device’s Info for Correct APK Downloads: https://www.howtogeek.com/339665/how-to-find-your-android-devices-info-for-correct-apk-downloads/#:~:text=For%20the%20Android%20version%2C%20look,entries%20under%20the%20Processor%20tab.

Lisa Fedane DJI Developer Support, US

Join DJI's Developer Community in our new Forum for Technical Discussions, Announcements and More: https://forum.dji.com/forum-139-1.html?from=developer