按照此处的步骤操作: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时,这是否有可能使应用程序崩溃?
答案 0 :(得分:1)
DJI Mobile SDK与AndroidX项目不兼容。几天前,我尝试使用Material Design和DJI MSDK创建应用程序时遇到了相同的问题。
答案 1 :(得分:0)
以上答案正确-DJI尚不支持AndroidX。如果您想向DJI SDK工程师发送对此或请求的反馈,请发邮件至dev@dji.com