yozhik
yozhik

Reputation: 5074

Build Error: Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug

I have a gradle build error in my android application. I tried to update NDK and all modules, but it still appears. Does anybody know what can cause it and how to fix it? Below is my gradle file:

Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'.
> A problem occurred starting process 'command 'D:\Android\SDK\ndk-bundle\toolchains\mips64el-linux-android-4.9\prebuilt\windows-x86_64\bin\mips64el-linux-android-strip''

gradle:

apply plugin: 'com.android.application'

android {
    signingConfigs {
        debug {
            storeFile file('../buildsystem/debug_key.jks')
            storePassword 'mypassword'
            keyAlias 'androiddebug'
            keyPassword 'mypassword'
        }
        release {
            keyAlias 'Alias'
            keyPassword 'mypassword'
            storeFile file('release.jks')
            storePassword 'mypassword'
        }
    }
    compileSdkVersion 25
    buildToolsVersion "27.0.3"
    defaultConfig {
        applicationId "com.mytestapplication.app"
        minSdkVersion 19
        targetSdkVersion 27
        versionCode 3
        versionName "1.2.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
            //debuggable true
        }
        debug {
            signingConfig signingConfigs.debug
        }
    }
    dexOptions {
        javaMaxHeapSize "4g"
    }
}

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.journeyapps:zxing-android-embedded:3.5.0'
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.android.support:support-v4:25.1.0'
    compile 'com.android.support:design:25.1.0'
    compile 'com.squareup.retrofit2:retrofit:2.3.0'
    compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
    compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
    compile 'com.squareup.okhttp3:okhttp:3.4.1'
    compile 'com.android.support:cardview-v7:25.0.+'
    compile 'com.android.support:recyclerview-v7:25.0.+'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.google.code.gson:gson:2.6.1'
    compile 'com.afollestad.material-dialogs:core:0.9.4.5'
    compile 'io.card:android-sdk:5.5.1'
    compile 'com.github.pinball83:masked-edittext:1.0.3'
    compile 'com.github.paolorotolo:appintro:3.3.0'
    compile 'com.google.firebase:firebase-core:12.0.0'
    compile "com.google.firebase:firebase-messaging:12.0.0"

    testCompile 'junit:junit:4.12'
}

apply plugin: 'com.google.gms.google-services'

Upvotes: 2

Views: 2511

Answers (2)

Yasham Ihsan
Yasham Ihsan

Reputation: 56

Its late, but it may help others

i solved it by downgrading to "android-ndk-r16b"

download from this link https://developer.android.com/ndk/downloads/older_releases

and then set ndk folder path in project-structure window.

Upvotes: 0

praveenb
praveenb

Reputation: 10659

Just in case, it may help to others.

Its solved after uninstalling NDK which is not required in my project.

enter image description here

Upvotes: 2

Related Questions