+ Start a Discussion
Pratik PawarPratik Pawar 

Plugin with id 'com.github.dcendents.android-maven' not found.

I am completing MOBILE SDK NATIVE APP TRAILHEAD COURSE( https://trailhead.salesforce.com/modules/mobile_sdk_native_android/units/mobilesdk_android_getting_started)
but I'm getting stuck while building cloned repo using Android studio.

Error occured into build.graddle file: 
Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.

First few lines of code are pasted below:
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

dependencies {
  compile project(':libs:SmartStore')
}

android {
  compileSdkVersion 25
  buildToolsVersion '23.0.1'

  buildTypes {
      debug {
         testCoverageEnabled = true
      }
  }

Please help me to resolve this issue.
Zyn ZynZyn Zyn

I'm having the same issue; I haven't found a resolution yet.  I have tried removing the 'com.github.dcendents.' section of the first tag, but that didn't seem to affect anything.  Removing the plugin line cauing the error (line 02) just moves the error to the line with 'com.jfrog.bintray'.  

StackOverFlow has some suggestions but nothing I have looked at so far helps.  It's really frustrating as this is the official document we should follow.  Maybe this worked on an earlier version of Android Studio but breaks now?

Mauro ItikiMauro Itiki

I have sorted it out just adding this code over everything:

plugins {
    id "com.github.dcendents.android-maven" version "1.5"
    id "com.jfrog.bintray" version "1.7.3"
}
Krish A 69Krish A 69
@Mauro,
Above snippet didn't worked for me. May me I am doing something wrong. Could you please post your complete build file ?
Mauro ItikiMauro Itiki

@Krish,
Have you tried to chande the code bellow?

android {
  compileSdkVersion 25
  buildToolsVersion '23.0.1'

  buildTypes {
      debug {
         testCoverageEnabled = true
      }
   }
}

 
to:
android {
  compileSdkVersion 25
  buildToolsVersion '25.0.0'

  buildTypes {
      debug {
         testCoverageEnabled = true
  	}
   }
}


 
Josh SimnittJosh Simnitt

You can also use forcedroid version 5.0 by typing "'npm install forcedroid@5.0.0".


"For now, please use forcedroid@5.0.0instead of forcedroid@5.0.1 - there are no code changes in 5.0.1 over 5.0.0. This is already fixed in the dev branch and will be in the next forcedroid release." 


https://github.com/forcedotcom/SalesforceMobileSDK-Android/issues/1368