DJI Mobile Sample Sdk Android - Sdk Registration Failed
5903 3 2018-12-3
Uploading and Loding Picture ...(0/1)
o(^-^)o
bogdanabc11
lvl.1
Ireland
Offline

Hi, I'm trying to develop a drone app for a school project and  when trying to run the Dji Mobile-Sdk-Android : https://github.com/dji-sdk/Mobile-SDK-Android using the instructions on the dji website : https://developer.dji.com/mobile-sdk/documentation/quick-start/index.html#android-sample-app
I have registered a developer account, created an application added the API key into the following field
<meta-data     android:name="com.dji.sdk.API_KEY"     android:value="" />
In the AndroidManifest.xml file. I exported the application as a .apk file and installed it on a Oneplus 6T, but when I start the application I'm getting the following erorr message : "Sdk Registration Failed. Please check the bundle ID and your network connectivity.The metadata received from server is invalid, please reconnect to the server and try"
I made sure that the bundle ID from the app page matches the package name in the Android studio and I have internet connection when I run the application and it's still not working.
Did anyone else encounter this before? Or does anyone else have any other suggestions on how to get started on developing an android app based on the DJI Android SDK ?

I have already sent an email to dev@dji.com 9 days ago but I did not get a reply yet.
Thank you.



2018-12-3
Use props
SChalice
lvl.1

United States
Offline

When you register the application in the developer center, you give it a Bundle Identifier.

That has to match the package name in your application code. In this case, it should probably be Bundle Identifier - "com.dji.sdk.sample".


build.gradle

android {
    defaultConfig {
        applicationId "com.dji.sdk.sample"



AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.dji.sdk.sample">
2019-3-11
Use props
ShayLevy68
lvl.2
Flight distance : 5663 ft
Israel
Offline

I have sane problem
see picture



If I understood right in my manifiest now
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.dji.sdk.sample">

............
<!-- SDK requirement permission end -->
    <application
        ..............
        <meta-data
            android:name="com.dji.sdk.sample"
            android:value="0d6..........................20"/>

my build grandle:
android {
............
    defaultConfig {
        applicationId "com.dji.sdk.sample"

but not working
same error: SDK Registration Failed. Please check the bundle ID and your network
        connectivity
2019-5-28
Use props
djiuser_hnUE1kdZEzdF
New

Armenia
Offline

ShayLevy68 Posted at 2019-5-28 01:02
I have sane problem
see picture


hello, I have the same thing, with the same Boundle ID and also does not work, can you please tell me your question has been resolved? if yes, please tell me)
2021-10-6
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules