How Can I Export Apk With Android Studio

Discussion in 'How Can I...?' started by m_nouri, Jun 13, 2017.

  1. m_nouri

    m_nouri Boxer

    Joined:
    Jun 12, 2017
    Messages:
    28
    Likes Received:
    1
    I want export for android devices with AndroidStudio, i edit buld.gradle and manifest.
    But when make build apk, show me error.
    Manifest Codes :
    <application
    android:name="android.support.multidex.MultiDexApplication"
    android:label="@string/app_name"
    android:icon="@drawable/icon"
    android:allowBackup="true">

    Build.gradle :
    apply plugin: 'com.android.application'
    android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
    applicationId "com.app_name.vallic.hr"
    minSdkVersion 14
    targetSdkVersion 25
    multiDexEnabled true
    ndk {
    moduleName "player_shared"
    }
    }

    buildTypes {
    release {
    minifyEnabled false
    shrinkResources false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }


    }
    sourceSets.main {
    jni.srcDirs = []
    }
    }

    dependencies {
    compile ('com.google.android.gms:play-services:+'){exclude module: 'support-v4'}
    compile files('libs/dagger-1.2.2.jar')
    compile files('libs/javax.inject-1.jar')
    compile files('libs/nineoldandroids-2.4.0.jar')
    compile files('libs/support-v4-19.0.1.jar')
    compile ('com.android.support:multidex:1.0.1')
    }
    gradle.propertise :
    android.useDeprecatedNdk=true

    when run game, show me this error :
    Error:Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
    Error:Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
    Error:Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
    Error:Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
    Error:Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
    Error:5 errors; aborting
    Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
    > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException


    How can i fix this issue?
     
  2. Dreadnought

    Dreadnought Boxer

    Joined:
    May 13, 2017
    Messages:
    10
    Likes Received:
    0
    I'm facing the same issue.
     

Share This Page