Quick Start Android


#1

Hi all,

I’ve tested the tutorial provided here :
https://docs.snips.ai/getting-started/quick-start-android

However, I’ve got this issue during compilation:
Could not find method implementation() for arguments [ai.snips:snips-platform-android:0.61.1@aar, build_hrff5soi3qol4d4nwpnjcrl6$_run_closure1$_closure3$_closure4@457c074c] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Which is cause by this line:
implementation(‘ai.snips:snips-platform-android:0.61.1@aar’) {
transitive=true
}

Is this tutorial still valid?


#2

hi @jjgrn !

make sure you use at least the android gradle plugin 3.0 as the implementation dependency scope was added back then


#3

Thanks for answering, @fredszaq.

However, I’m already on graddle 3.3.2. This is my build.graddle :
buildscript {
repositories {
google()
jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.2'
        implementation('ai.snips:snips-platform-android:0.61.1@aar') {
            transitive = true
        }
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven {
            url "https://nexus-repository.snips.ai/repository/snips-maven-releases/"
        }

    }
}

And my distirbution url is set to https://services.gradle.org/distributions/gradle-4.10.1-all.zip.


#4

OOoops, it’s the wrong build.gradle (Project: and not app:). Sorry for the disruption :slight_smile: