从build.gradle文件调用gradle文件时出现未绑定输入和/或主题错误

从build.gradle文件调用gradle文件时出现未绑定输入和/或主题错误,gradle,android-gradle-plugin,gradle-plugin,Gradle,Android Gradle Plugin,Gradle Plugin,我面临着错误 梯度同步失败:由于以下原因,无法应用以下模型规则 >要解除输入和/或主题的绑定: >android.ndk{…}@app\src\main\jni\other.gradle第35行第3列 >主题: >-android.ndk对象[] >android.sources{…}@app\src\main\jni\other.gradle第16行第3列 >主题: >-android.sources对象[] >[*]-表示找不到路径或类型的模型项。 >有关更多详细信息,请参阅IDE日志(帮助

我面临着错误

梯度同步失败:由于以下原因,无法应用以下模型规则 >要解除输入和/或主题的绑定: >android.ndk{…}@app\src\main\jni\other.gradle第35行第3列 >主题: >-android.ndk对象[] >android.sources{…}@app\src\main\jni\other.gradle第16行第3列 >主题: >-android.sources对象[] >[*]-表示找不到路径或类型的模型项。 >有关更多详细信息,请参阅IDE日志(帮助|显示日志)(374毫秒)

build.gradle文件

plugins {
    id 'com.android.application'
}
// Defines
apply from: 'defines.gradle'

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.2"
    defaultConfig {
        applicationId "com.exmp.application"
        minSdkVersion 16
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "androidx.core:core-ktx:+"
    implementation 'androidx.annotation:annotation:1.1.0'
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'com.google.android.material:material:1.2.1'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}

  apply from: 'src/main/jni/other.gradle'
其他.gradle文件:

model {
  android.sources {
    main {
      jni {
        source {
          srcDirs += [ 'src' ]
         }
      }
    }
  }
  android.ndk {    
  }
}