Gradle 4.5 ComplieSdkVersion is not specified

I’m using gradle 4.5 and I’ve downloaded source code of Artoolkit which is for uagmented reality. Gradle version of source code is older. I’ve changed some properties of build.gradle from root and build.gradle in project app folder.

but after running gradle.build I get this error:

complieSdkVersion is not specified

This is build.gradle root file:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: ‘com.android.application’

buildscript {
repositories {
google()
jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects {
repositories {
google()
jcenter()
}

This is build.gradle in project folder:

apply plugin: ‘com.android.application’

model {
android {
compileSdkVersion 25
buildToolsVersion “25.0.2”

    defaultConfig.with {
        applicationId = "org.artoolkit.ar.samples.ARSimple"
        minSdkVersion.apiLevel = 15
        targetSdkVersion.apiLevel = 26
        versionCode = 1
        //Integer type incremented by 1 for every release, major or minor, to Google store
        versionName = "1.0" //Real fully qualified major and minor release description

        buildConfigFields.with {
            //Defines fields in the generated Java BuildConfig class, in this case, for
            create() {           //default config, that can be accessed by Java code
                type = "int"     //e.g. "if (1 == BuildConfig.VALUE) { /*do something*/}".
                name = "VALUE"
                //See: [app or lib]/build/generated/source/buildConfig/[package path]/
                value = "1"      //     BuildConfig.java
            }
        }
    }
}

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

android.productFlavors {
}

android.sources {
    main.jni {
        source {
            srcDirs = ['src/main/nop']
        }
    }
    main.jniLibs {
        source {
            srcDirs = ['src/main/libs']
        }
    }
}

}
dependencies {
//compile ‘com.android.support:support-v4:23.0.1’
//compile ‘com.android.support:appcompat-v7:23.0.1’ //Only required when the target device API level is greater than
//compile project(‘:aRBaseLib’)
implementation project(‘:aRBaseLib’)
}

Still nobody wants to answer?