Android studio with api.ai lib -


i trying use api.ai in android project. download android studio 2.3.3 create new blank project use android 5.0 o higher go here , put dependencies

compile 'ai.api:sdk:2.0.7@aar' // api.ai sdk dependencies compile 'com.android.support:appcompat-v7:23.2.1' 

but put dependencies got error:

error:(9, 0) gradle dsl method not found: 'compile()' possible causes:

  • the project 'chefbot' may using version of android gradle plug-in not contain method (e.g. 'testcompile' added in 1.1.0). upgrade plugin version 2.3.3 , sync project
  • the project 'chefbot' may using version of gradle not contain method. open gradle wrapper file
  • the build file may missing gradle plugin. apply gradle plugin
  • how can fix this?

    this build.gradle:

    // top-level build file can add configuration options common sub-projects/modules. apply plugin: 'com.android.application' // put , don`t work buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:2.3.3'         compile 'ai.api:sdk:2.0.7@aar'         compile 'com.android.support:appcompat-v7:23.2.1'     } }  allprojects {     repositories {         jcenter()     } }  task clean(type: delete) {     delete rootproject.builddir } 


    Comments

    Popular posts from this blog

    ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

    php - How can i create a user dashboard -

    javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -