Mobile SDK4.16.3版本调用registerApp方法出行崩溃

Completed

Comments

3 comments

  • Boerma
    org.apache.http.client.HttpClient

    少了这个库,Android 6.0之后httpclient被移出Android源码,许自行引入

    1
    Comment actions Permalink
  • DJI Developer Support
    可以下载一下我们的Sample对比一下是不是少了什么库。 Link:https://github.com/dji-sdk/Mobile-SDK-Android
    0
    Comment actions Permalink
  • szym.wrobel

    Ok, so I've faced the same issue (btw sorry, but referencing the sample app didn't help at all). I was doing everything as mentioned in the "Integrate SDK into Application" section and I kept getting the above error all the time.

    After hours of searching for the solution, I found the dependency which I consider the holy grail, as it finally fixed the issue:

    api("com.github.ok2c.hc4.android:httpclient-android:0.1.0")

    when I added this line, the app finally stopped crashing.

    Hope someone finds this helpful. I'm leaving it here, as it was pretty much the only result after googling the error. Cheers

    0
    Comment actions Permalink

Please sign in to leave a comment.