【问题标题】:Lint errors using dji mobile sdk使用 dji mobile sdk 检测 Lint 错误
【发布时间】:2019-05-17 14:12:55
【问题描述】:

按照此处的步骤:https://developer.dji.com/mobile-sdk/documentation/application-development-workflow/workflow-integrate.html#android-studio-project-integration 将 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 时,这是否有可能导致应用程序崩溃?

【问题讨论】:

    标签: android gradle androidx dji-sdk


    【解决方案1】:

    DJI Mobile SDK 不兼容 AndroidX 项目。几天前,我在尝试使用 Material Design 和 DJI MSDK 创建应用时遇到了同样的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-02
      • 1970-01-01
      • 2022-01-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多