Ошибка возникает в ниндзя при сборке CMake - PullRequest
0 голосов
/ 23 марта 2020

Произошла ошибка при сборке CMake.

файл build.gradle:

apply plugin: 'com.android.application'   android {
compileSdkVersion 29
buildToolsVersion "29.0.3"

defaultConfig {
    applicationId "com.example.ffmpeg"
    minSdkVersion 14
    targetSdkVersion 29
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    externalNativeBuild {
        cmake {
            cppFlags "-frtti -fexceptions"
            abiFilters 'arm64-v8a'
        }
    }
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
externalNativeBuild {
    cmake {
        path file('CMakeLists.txt')
    }
}}dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'}

enter image description here

ОШИБКА enter image description here

МОЙ проект

enter image description here

Структура проекта

enter image description here

Как я могу решить эту ошибку?

Build command failed.

Error while executing process D:\install\sdk\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C D:\Android projects\ffmpeg\app\.cxx\cmake\debug\arm64-v8a native-lib}

ninja: Entering directory `D:\Android projects\ffmpeg\app\.cxx\cmake\debug\arm64-v8a'

ninja: error: FindFirstFileExA(/d:/install/sdk/ndk/21.0.6113669/arm64-v8a): The filename, directory name, or volume label syntax is incorrect.
...