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

已完成

评论

3 条评论

  • Boerma
    org.apache.http.client.HttpClient

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

    1
    评论操作 固定链接
  • DJI Developer Support
    可以下载一下我们的Sample对比一下是不是少了什么库。 Link:https://github.com/dji-sdk/Mobile-SDK-Android
    0
    评论操作 固定链接
  • 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
    评论操作 固定链接

请先登录再写评论。