生成错误:任务':app:transformNativeLibsWithStripDebugSymbolForDebug的执行失败 [英] Build Error: Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug
本文介绍了生成错误:任务':app:transformNativeLibsWithStripDebugSymbolForDebug的执行失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的Android应用程序中出现gradle构建错误.我尝试更新NDK和所有模块,但它仍然出现.有谁知道会导致它的原因以及如何解决它?以下是我的gradle文件:
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''
等级:
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'
推荐答案
以防万一,它可能对其他人有所帮助.
Just in case, it may help to others.
在卸载我的项目中不需要的NDK后解决了该问题.
Its solved after uninstalling NDK which is not required in my project.
这篇关于生成错误:任务':app:transformNativeLibsWithStripDebugSymbolForDebug的执行失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文