Soru & Cevap

Androi Multiple Dex Sorunu

29.05.2017 - 07:15

1 haftadır uğraşıyorum ingilizce sitelerdeki çözümleri denedim olmadı bir türlü.

Hata şu

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: 
com.android.ide.common.process.ProcessException: 
java.util.concurrent.ExecutionException: com.android.dex.DexException: 
Multiple dex files define 
Lcom/google/android/gms/internal/zzaac$zza;

gradle kodları

apply plugin: 'com.android.application'
android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        //multiDexEnabled true
    }
    defaultConfig {
        applicationId "com.oyunlar.dortislem"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        //multiDexEnabled = true
    }
    buildTypes {
        release {
            //multiDexKeepProguard 'multidex-config.pro'
            minifyEnabled true
            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:multidex:1.0.1'
    compile 'com.android.support:appcompat-v7:25.3.0'
    compile 'com.google.firebase:firebase-database:10.2.0'
    //compile 'com.google.firebase:firebase-core:10.0.1'
    //compile 'com.google.firebase:firebase-messaging:10.0.1'
    compile 'com.google.firebase:firebase-auth:10.0.1'
    //compile 'com.google.firebase:firebase-crash:10.0.1'
    //compile 'com.google.firebase:firebase-ads:10.0.1'
    testCompile 'junit:junit:4.12'
    //compile 'com.google.android.gms:play-services:10.2.1'
    //compile 'com.google.android.gms:play-services-maps:10.2.1'
}
apply plugin: 'com.google.gms.google-services'

 

AndroidManifest kodları

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.oyunlar.dortislem">
    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme1"
        >
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".DortislemOyunu"></activity>
        <activity android:name=".DortislemOyunuSonuc"></activity>
        <activity android:name=".TopList"></activity>
        <activity android:name=".NtGirisGiris"></activity>
        <activity android:name=".Admin"></activity>
    </application>

</manifest>

Teşekkürler

83 Görüntülenme

1 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

Profile picture for user osman.asar
osman.asar
14.12.2019 - 11:27

https://developer.android.com/studio/build/multidex bi inceleyin isterseniz