Report: ExtensibleDynamicObject error

i tried to build my existing project in android studio 1.3 in
but i got this error

"Error:Cause: org.gradle.api.internal.ExtensibleDynamicObject"

for the reference

some of my source code is described below

  apply plugin: 'com.android.model.application'
    
    model{
    android {
        compileSdkVersion 21
        buildToolsVersion "22.0.1"
    
        defaultConfig.with {
            applicationId "my.project.MyRealTimeImageProcessing"
            minSdkVersion 21
            targetSdkVersion 21
            versionCode = 1
            versionName = "1.0"
        }
        }
    
            android.ndk {
                moduleName "ImageProcessing"
            }

    android.buildTypes {
        release {
            minifyEnabled false
            proguardFiles +=file('proguard-rules.txt')
        }
    }
}

    dependencies {
        compile fileTree(include: ['*.jar'], dir: 'libs')
        compile 'com.android.support:appcompat-v7:22.2.1'
    }

classpath 'com.android.tools.build:gradle-experimental:0.1.0’
distributionUrl=https://services.gradle.org/distributions/gradle-2.5-all.zip

OS: win 10 64bit

solved.

please delete this post

Could you please detail how you managed to fix this issue? I am facing the same with gradle-2.5.

Spoke too soon. Seems like I was missing an assignment operator after ‘moduleName’.

So it should be

moduleName = "ImageProcessing"

instead of

moduleName "ImageProcessing"

Brother, I am new to gradle, can you please tell me what we actually use as moduleName ???

your are corret and other things.

minSdkVersion 21
targetSdkVersion 21
should be
minSdkVersion.apiLevel =21
targetSdkVersion.apiLevel = 21

your previous module name

it’s already exist in your android project .

if you make new project instead of porting from existing one, it should be match with your native method name in java.