【问题标题】:How to add Yandex map in android?如何在 android 中添加 Yandex 地图?
【发布时间】:2018-09-01 06:33:26
【问题描述】:

我尝试在我的 android 应用程序中添加 Yandex 地图 我做了所有事情,如图所示here

我在依赖项中添加了implementation 'com.yandex.android:mapkit:3.0.0'

repositories {
    maven {
        url "http://maven.google.com/"
    }
}

最后将mavenCentral() 放入存储库

当我同步时一切正常,但当我重建应用程序时,我得到了

com.android.builder.dexing.DexArchiveBuilderException: 失败 过程 D:\android\SD_Delivery\app\build\intermediates\transforms\desugar\debug\21.jar
com.android.builder.dexing.DexArchiveBuilderException: 出错时 德兴。 java.lang.ArrayIndexOutOfBoundsException: -214748364

我哪里做错了?

【问题讨论】:

    标签: java android yandex


    【解决方案1】:

    添加:build.gradle的app级别:

    dependencies {
      ...
      implementation 'com.yandex.android:mapkit:3.0.0'
    }
    

    解决Dex问题try it

    【讨论】:

      【解决方案2】:

      这里说更新到android studio 3.2必须解决问题:https://github.com/yandex/mapkit-android-demo/issues/2

      【讨论】:

        猜你喜欢
        • 2016-08-07
        • 2023-03-26
        • 1970-01-01
        • 1970-01-01
        • 2020-05-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多