SDK版本:
com.dji:dji-sdk-provided:4.9
com.dji:dji-uxsdk:4.9
com.dji:dji-sdk:4.9Android版本:3.5.0
分级版本:5.4.1
安卓设备版本:5.1.1 (华为平板)
环境:muti口和dji-sdk不导入主口
问题描述:我的应用程序中首先有init,当我运行项目时,当init时程序崩溃,然后在logcat中遇到这个问题。你能帮帮我吗?非常感谢!我也尝试过DJI-SDK4.10,但是仍然不能工作。
格莱德尔:
api ('com.dji:dji-sdk:4.9'){
exclude group: 'com.vividsolutions'
}
api('com.dji:dji-uxsdk:4.9') {
exclude group: 'com.vividsolutions'
}
compileOnly 'com.dji:dji-sdk-provided:4.9'我的申请
@Override
protected void attachBaseContext(Context context) {
super.attachBaseContext(context);
com.secneo.sdk.Helper.install(this);
}发现错误
"java.lang.UnsatisfiedLinkError: No implementation found for byte[] dji.midware.natives.SDKRelativeJNI.native_getXXXX(java.lang.String) (tried Java_dji_midware_natives_SDKRelativeJNI_native_1getXXXX and Java_dji_midware_natives_SDKRelativeJNI_native_1getXXXX__Ljava_lang_String_2)
at dji.midware.natives.SDKRelativeJNI.native_getXXXX(Native Method)"发布于 2019-08-30 02:53:53
我三天后解决了这个问题。
1.打开项目"local.properties“文件,您可以看到
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Thu Aug 29 17:07:04 CST 2019
sdk.dir=C\:\\Users\\admin\\AppData\\Local\\Android\\Sdk现在只需在SDK路径的前一行中添加一行
ndk.dir=结果
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Thu Aug 29 17:07:04 CST 2019
ndk.dir=
sdk.dir=C\:\\Users\\admin\\AppData\\Local\\Android\\Sdk2.现在,您应该打开sdk.dir并找到类似于"ndk“或"ndk-bundle”的文件夹,然后删除它们(如果您不想删除,可以重命名为“ndk-test”、"ndk-bundle-test“或其他您喜欢的文件夹)。不要担心,如果您需要编辑NDK函数,您可以在SDK-manager.but中下载,但是如果您想要构建这个项目,就必须这样做。
3.最后,重建,就这么简单!!
https://stackoverflow.com/questions/57671093
复制相似问题