Closed Rishat7c closed 6 years ago
better to turn off shrinkResources like following: shrinkResources false
There is no parameter in the gradle.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
apply plugin: 'com.android.application'
allprojects {
repositories {
jcenter()
google()
}
}
android {
compileSdkVersion 24
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.dji.videostreamdecodingsample"
minSdkVersion 16
targetSdkVersion 24
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
jniLibs.srcDir 'libs'
}
}
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"
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.dji:dji-sdk:4.4.1'
provided 'com.dji:dji-sdk-provided:4.4.1'
}
The problem is still relevant, are there solutions?
@Rishat7c which phone pls? and pls provide the detail when you reproduce it.
@Michael-DJI corrected the problem by commenting out one line in ConnectionActivity
this :
loginDJIUserAccount();
@Rishat7c yes could provide the device you were using? so that we could fix some potential issue.
@Michael-DJI Xiaomi Redmi 4X
we will update the sample with MSDK v4.5.1 in nearly days, pls try with it then.
When the application starts, it displays the Register SDK Succes dialog box and closes the application.
Fears on these three lines in the ConnectionActivity class: