これは私のbuild.gradleです。ビルドapkをクリックしてapkをビルドすると、このエラーが表示されます。以前にいくつかのクエリを見たことがありますが、ソリューションandroidでapkをビルド中にエラーが発生しました
エラー: ':app:transformClassesWithDexForDebug'タスクの実行に失敗しました。
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.example.ranjeet.location"
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
testCompile 'junit:junit:4.12'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.code.gson:gson:2.8.0'
compile 'com.google.android.gms:play-services:10.2.6'
compile 'com.google.android.gms:play-services-maps:10.2.6'
}
をいただきましエラー?エラーログを貼り付け、使用しているアンドロイドスタジオのバージョンを伝えます。 –
編集して貼り付けました。 –
最新のappcompatおよびsupport libraryに更新した後、[DexIndexOverflowExceptionの問題が発生する可能性があります](https://stackoverflow.com/questions/26515378/dexindexoverflowexception-issue-after-updating-to-latest-appcompat -and-support-l) – Selvin