title: React native Error:Project :app declares a dependency from configuration 'compile' to configuration 'default' ...project :react-native-linear-gradient
body: <p>I'm trying to add <code>react-native-linear-gradient</code> to my project following these <a href="https://github.com/react-native-community/react-native-linear-gradient#android" rel="nofollow noreferrer">instructions</a> but after adding the dependency to the <code>app/build.gradle</code> file and tried to sync the project I got this error </p>
  
  <pre><code>Error:Project :app declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project :react-native-linear-gradient.
  </code></pre>
  
  <p>May be someone have any ideas what I'm doing wrong? Thanks.</p>
  
  <p><strong><em>UPDATE</em></strong> :</p>
  
  <p>This my <code>app/build.gradle</code> file </p>
  
  <pre><code>dependencies {
      compile project(':react-native-svg')
      compile project(':react-native-linear-gradient')
      compile fileTree(dir: "libs", include: ["*.jar"])
      compile "com.android.support:appcompat-v7:23.0.1"
      compile "com.facebook.react:react-native:+"  // From node_modules
  }
  </code></pre>
  
  <p>and this is my <code>settings.gradle</code> file: </p>
  
  <pre><code>rootProject.name = 'DuluxTradePoints'
  include ':react-native-svg'
  project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android')
  include ':react-native-linear-gradient'
  project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-linear-gradient/android')
  include ':app'
  </code></pre>