title: android studio: No service of type Factory available in ProjectScopeServices
body: <p>I try to start an  <a href="https://github.com/daimajia/AndroidSwipeLayout" rel="nofollow noreferrer">this Android Studio app</a>.</p>
  
  <p>when I open app with android studio I got this error:</p>
  
  <pre><code>No service of type Factory available in ProjectScopeServices
  </code></pre>
  
  <p>I am new to android studio But I try solved this with seachring:</p>
  
  <p>My android studio version is 2.2.3 and Android SDK tools: 25.2.5./tools version:25.0.2</p>
  
  <p>I extract app and edit it for work my android studio version:</p>
  
  <p>old <strong>build.gradle</strong></p>
  
  <pre><code>dependencies {
      classpath 'com.android.tools.build:gradle:1.0.0'
      classpath 'com.github.dcendents:android-maven-plugin:1.2'
  
  }
  </code></pre>
  
  <p>I read <a href="https://stackoverflow.com/a/38871519/2726957">this</a> and changed it to this:</p>
  
  <pre><code>dependencies {
      classpath 'com.android.tools.build:gradle:2.2.3'
      classpath 'com.github.dcendents:android-maven-plugin:1.2'
      classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
  }
  </code></pre>
  
  <p>I also changed <strong>gradle.properties</strong> to this:</p>
  
  <pre><code>VERSION_NAME=1.2.0
  VERSION_CODE=22
  GROUP=com.daimajia.swipelayout
  
  ANDROID_BUILD_MIN_SDK_VERSION=16
  ANDROID_BUILD_TARGET_SDK_VERSION=25
  ANDROID_BUILD_SDK_VERSION=25
  ANDROID_BUILD_TOOLS_VERSION=25.0.2
  </code></pre>
  
  <p>Also change  <strong>demo/build.gradle</strong> to this:</p>
  
  <pre><code>dependencies {
      compile project(":library")
      compile 'com.android.support:recyclerview-v7:21.0.0'
      compile 'com.daimajia.easing:library:1.0.0@aar'
      compile 'com.daimajia.androidanimations:library:1.1.2@aar'
      compile 'com.nineoldandroids:library:2.4.0'
      compile 'jp.wasabeef:recyclerview-animators:1.0.3@aar'
  }
  </code></pre>
  
  <p>And finally change <strong>library/build.gradle</strong></p>
  
  <pre><code>apply plugin: 'com.android.library'
  
  android {
      compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
      buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
  
      defaultConfig {
          minSdkVersion 16
          targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
      }
  }
  
  dependencies {
      compile 'com.android.support:recyclerview-v7:25.1.1'
      compile 'com.android.support:support-v4:25.+'
  }
  apply from: './gradle-mvn-push.gradle'
  
  apply plugin: 'android-maven'
  // build a jar with source files
  task sourcesJar(type: Jar) {
      from android.sourceSets.main.java.srcDirs
      classifier = 'sources'
  }
  artifacts {
      archives sourcesJar
  }
  </code></pre>
  
  <p>But I get that error again!</p>
  
  <p>please help me.</p>