产品:DJI Phantom 4

Android设备:Google Pixel(8.0.0,API 26)

Android Studio版本:3.2.1

我正在尝试运行位于以下位置的Google Maps Mapview和Waypoint演示应用程序:https://github.com/DJI-Mobile-SDK-Tutorials/Android-GSDemo-GoogleMap

当我构建项目并在模拟器或实际设备上运行它时,它会在启动时崩溃 . 除了将我的DJI应用密钥和Google API密钥添加到AndroidManifest.xml之外,我没有对原始代码进行任何更改 . 我还在build.gradle(Module:app)中的ndk abiFilters中添加了'x86',以便它可以在Google Pixel上运行 .

ndk {
    abiFilters 'armeabi-v7a', 'x86'
}

它在同步或构建期间不会返回任何错误,但是有一个警告:

不推荐使用 android.dexOptions.incremental 属性,它对构建过程没有影响 .

我查看了gradle和源文件,看看是否有任何错误,build.gradle(Module:app)和AndroidManifest.xml中有一些错误 . 在build.gradle中,第56行有一个错误:

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 26.1.0, 23.0.0. Examples include `com.android.support:animated-vector-drawable:26.1.0` and `com.android.support:mediarouter-v7:23.0.0`

build.gradle中的第62行也有错误:

Version must be at least 10.2.1 when targeting O

AndroidManifest,第18,20和23行:

Permission is only granted to system apps

我已尝试通过将依赖项更新为最新可用来解决前两个错误,但应用程序在启动时仍会崩溃 .