简体   繁体   中英

Error during setup LinkedIn SDK in Android Studio

I am trying to set up LinkedIn sdk in Android Studio, but in build.gradle file I am getting following :

Error:(18, 0) 'com.android.build.gradle.BasePlugin' does not implement the Plugin interface.

at following line :

subprojects { subproj ->
    subproj.plugins.withType(com.android.build.gradle.BasePlugin.class) {
        subproj.android {
            compileSdkVersion _compileSdkVersion
            buildToolsVersion _buildToolsVersion
        }
    }
}

Please guide me how I can solve this issue so that I can move further.

add followed code to your head of build.gradle, replace 2.0.0-beta5 to the newest version

buildscript {
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.0.0-beta5'
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM