使用DJI Mobile SDK犯错误



在遵循此处的步骤之后:https://developer.dji.com/mobile-sdk/documentation/application-develoverment-workflow/workflow/workflow-interflow-integrate.html#android-stroid-prodio-projection - 集成将SDK添加到Android Studio中新创建的Androidx项目中,LINT无法使用以下错误构建:

  ~/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcpkix-jdk15on/1.57/5c96e34bc9bd4cd6870e6d193a99438f1e274ca7/bcpkix-jdk15on-1.57.jar: Error: Invalid package reference in library; not included in Android: javax.naming.directory. Referenced from org.bouncycastle.cert.dane.fetcher.JndiDANEFetcherFactory. [InvalidPackage]
  ~/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcpkix-jdk15on/1.57/5c96e34bc9bd4cd6870e6d193a99438f1e274ca7/bcpkix-jdk15on-1.57.jar: Error: Invalid package reference in library; not included in Android: javax.naming. Referenced from org.bouncycastle.cert.dane.fetcher.JndiDANEFetcherFactory.1. [InvalidPackage]
  ~/.gradle/caches/modules-2/files-2.1/com.lmax/disruptor/3.3.9/7898f8e8dc2d908d4ae5240fbb17eb1a9c213b9b/disruptor-3.3.9.jar: Error: Invalid package reference in library; not included in Android: java.lang.management. Referenced from com.lmax.disruptor.dsl.BasicExecutor. [InvalidPackage]

可以使用lint.xml文件避免这种情况。这是一个问题吗?当它尝试使用SDK时,这是否有可能崩溃?

DJI移动SDK与Androidx项目不兼容。几天前,我在尝试使用材料设计和DJI MSDK创建应用程序时也遇到了同样的问题。

最新更新