我试图使用一个新的API,但当我更改依赖项时,错误开始一个接一个地出现。
当我添加这一行
implementation 'com.yandex.android:mapkit:3.0.0'
时,这一行中断了。
implementation 'com.android.support:appcompat-v7:28.0.0-rc02'
。Android Studio建议我添加
//noinspection GradleCompatible
,所以我添加了。但现在我的应用不能运行了。说:
原因:dexing时出现com.android.builder.dexing.DexArchiveBuilderException:错误。
原因: java.lang.ArrayIndexOutOfBoundsException:-2147483648原因: com.android.builder.dexing.DexArchiveBuilderException:无法处理/home/melkor/.gradle/caches/transforms-1/files-1.1/runtime-3.0.0.aar/fba329a4af9f160a1109c717ee93ced1/jars/classes.jar
这是我的android清单
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.melkor.testyandex"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
repositories {
maven {
url "http://maven.google.com/"
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0-rc02'