Comments

14 comments

  • DJI Developer Support
    建议直接下载Sample使用,文档已经过时了。 Link:https://github.com/dji-sdk/Mobile-SDK-Android
    0
    Comment actions Permalink
  • 水星记

    好的,谢谢啦

    0
    Comment actions Permalink
  • 水星记

    你好,使用sample导入AS编译,我使用的AS是比较新的版本,因此我也修改了build.gradle里的gradel版本号,以及complileSDKVersion 31,以及distributionUrl-http

    distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
    compileSdkVersion 31

    但是event log  说Failed to start monitoring fmizxct4kbirjvp7,但是编译过程中没有报错

     

     

    0
    Comment actions Permalink
  • DJI Developer Support
    你先用30吧,别用31,gradle可以考虑使用7.1.all,你用那么高的gradle的话,android build tool也得用最新。 classpath 'com.android.tools.build:gradle:4.2.2'
    1
    Comment actions Permalink
  • 水星记

    好的,我试一下

     

    0
    Comment actions Permalink
  • 水星记

    你好,今天我运行sample,一直说不存在gradle7.1.all-bin.zip,请问这是什么问题?

    0
    Comment actions Permalink
  • DJI Developer Support
    这里面存得是我得电脑里的配置,你需要去Google官网下载一个gradle版本放进去,或者你看看你的gradle版本是多少,你在项目里改掉也可以。
    0
    Comment actions Permalink
  • 水星记

    好的

     

    0
    Comment actions Permalink
  • 水星记

    你好,我把sdk  装到手机上后,点击register APP  没反应,这个必须要手机通过数据线连接到无人机上,才可以去注册,进行后续的操作嘛?

    0
    Comment actions Permalink
  • DJI Developer Support
    手机必须要用网络,我看你手机是有网络的。你点击注册以后是否有任何气泡冒出呢,注册成功或者失败?
    0
    Comment actions Permalink
  • 水星记

    是的,有显示注册成功,然后后边怎么进入这个APP呢?

     

    0
    Comment actions Permalink
  • DJI Developer Support
    手机必须要和遥控器USB进行链接,链接上以后会跳框选择充电就好,然后会跳出app选项,选择MSDK app就可以连接上了。你使用的是什么机型呢?
    0
    Comment actions Permalink
  • 水星记

    使用的M300无人机

    0
    Comment actions Permalink
  • DJI Developer Support
    M300的话最建议得是你直接把app装在遥控器里,因为遥控器相当于安卓平板+遥控器。你如果想要外接手机,则需要使用type-C/MicroUSB线连接手机,注意连接后要下拉菜单把USB电量,会跳出是否充电得选项,点击充电后会跳出选择什么app打开,选择Sample就可以了。如果app直接装在遥控器里则不需要任何其他操作,直接使用即可。遥控器与电脑需要用双A线连接,不是Type-C线。
    0
    Comment actions Permalink

Please sign in to leave a comment.