Android错误:java.io.IOException:CreateProcess error = 2,系统找不到指定的文件

Pra*_*ani 9 android ioexception android-ndk android-studio

我在构建一个电子商务应用程序时遇到以下错误.

它正在成功构建但是当我尝试运行此应用程序时,给我错误如下:

在此输入图像描述

我的build.gradle有以下依赖项:

dependencies {
    configurations.all {
        resolutionStrategy.eachDependency { DependencyResolveDetails details ->
            def requested = details.requested
            if (requested.group == 'com.android.support') {
                if (!requested.name.startsWith("multidex")) {
                    details.useVersion '27.1.0'
                }
            }
        }
    }
    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'
    })
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:27.1.0'
    compile 'com.android.support:design:27.1.0'
    compile 'com.android.support:cardview-v7:27.1.0'
    compile 'com.android.support:recyclerview-v7:27.1.0'
    compile 'com.android.support:support-v4:27.1.0'
    compile 'com.android.support:preference-v7:27.1.0'
    compile 'com.android.support:preference-v14:27.1.0'
    compile 'com.google.code.gson:gson:2.8.2'
    compile 'com.squareup.retrofit2:retrofit:2.3.0'
    compile 'com.squareup.retrofit2:converter-gson:2.3.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.mcxiaoke.volley:library:1.0.19'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.daimajia.slider:library:1.1.5@aar'
    compile 'com.crystal:crystalrangeseekbar:1.1.1'
    compile 'com.github.paolorotolo:appintro:4.1.0'
    compile 'com.stripe:stripe-android:2.0.2'
    compile 'com.braintreepayments:card-form:3.3.0'
    compile 'com.braintreepayments.api:drop-in:3.+'
    compile 'com.braintreepayments.api:braintree:2.12.0'
    compile 'com.paypal.sdk:paypal-android-sdk:2.15.3'
    compile 'com.facebook.android:facebook-android-sdk:4.31.0'
    compile 'com.google.firebase:firebase-ads:12.0.1'
    compile 'com.google.firebase:firebase-auth:12.0.1'
    compile 'com.google.firebase:firebase-messaging:12.0.1'
    compile 'com.google.android.gms:play-services-auth:12.0.1'
    compile 'com.google.android.gms:play-services-maps:12.0.1'
    compile 'com.google.android.gms:play-services-location:12.0.1'
}
Run Code Online (Sandbox Code Playgroud)

我不知道问题在哪里,有没有人知道这件事?

Khe*_*raj 0

您的 ndk 似乎已损坏或损坏。

如果我是你,我会尝试

  1. 更新或尝试删除旧的 ndk 并下载最新的 ndk
  2. 另外我认为你正在运行旧的 Android Studio,为什么不更新你的 Android Studio 和 Gralde 版本,我总是喜欢新的稳定的 Android Studio 到来,因为android 更新是一支应对未知错误的军队。:)