我的 Android 应用程序中有一个 gradle 构建错误。我尝试更新 NDK 和所有模块,但它仍然出现。有谁知道是什么原因导致的以及如何解决它?下面是我的 gradle 文件:
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'
以防万一,它可能对其他人有帮助。
卸载我的项目中不需要的 NDK 后解决了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)