Skip to content Skip to sidebar Skip to footer

Android Studio Gradle Configuration With Name 'default' Not Found Using Library Project Shinobicharts

settings.gradle: include ':app' include ':app:libraries:shinobicharts-android-library' build.gradle: apply plugin: 'com.android.application' android { compileSdkVersion 21

Solution 1:

You have to define a build.gradle for each module in your project.

Also it is not a good idea to define a module inside another module.

You should have this structure:

root
  app
    build.gradle
  libraries
    shinobicharts-android-library
       build.gradle
  build.gradle   //top level
  settings.gradle

In your settings.gradle change in:

include':app'include':libraries:shinobicharts-android-library'

In your app/build.gradle change

compile project(':libraries:shinobicharts-android-library')

In shinobicharts-android-library/build.gradle:

apply plugin: 'com.android.library'

android {
   compileSdkVersion 21
   buildToolsVersion "21.1.2"

   defaultConfig {
     minSdkVersion 11
     targetSdkVersion 21
   }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    //...other
}

Post a Comment for "Android Studio Gradle Configuration With Name 'default' Not Found Using Library Project Shinobicharts"