title: Could not find method api() for arguments [project ':model'] on object of
body: <p><strong>Error:(36, 0)</strong>
  <strong>Could not find method api() for arguments [project ':model'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler</strong></p>
  <p>Please help me.</p>
  <blockquote>
  <p>This is my build.gradle file.</p>
  </blockquote>
  <pre><code>apply plugin: 'com.android.application'
  //apply plugin: 'io.fabric'
  
  android {
  compileSdkVersion 26
  buildToolsVersion &quot;26.0.2&quot;
  defaultConfig {
   applicationId &quot;com.manafzar.mytaxi.driver&quot;
   minSdkVersion 16
   targetSdkVersion 26
   versionCode 23
   versionName &quot;2.0.3&quot;
   multiDexEnabled true
   vectorDrawables.useSupportLibrary = true
   javaCompileOptions {
      annotationProcessorOptions {
      arguments = [eventBusIndex: 
     'com.manafzar.mytaxi.driver.DriverEventBusIndex']
    }
   }
  }
  buildTypes {
   release {
     minifyEnabled false
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 
        'proguard-rules.pro'
    }
  }
  dataBinding {
    enabled = true
    }
  }
  
  dependencies {
     annotationProcessor 'org.greenrobot:eventbus-annotation-processor:3.0.1'
     api project(':model')
     api 'com.google.maps.android:android-maps-utils:0.5'
     api 'com.diogobernardino:williamchart:2.5.0'
  }
  apply plugin: 'com.google.gms.google-services'
  </code></pre>