I am using the BottomSheet library to create the BottomSheet menu as explained in Google documentation.
I added the BottomSheet library to my project but when I sync with gradle then I am getting error message. I tried all the answers listed at Error: Configuration with name 'default' not found in Android Studio and other solutions listed on stackoverflow but the issue still persists.
Here are build.gradle and settings files of my project:
BottomSheet/build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
}
}
allprojects {
group = POM_GROUP_ID
version = POM_VERSION
repositories {
jcenter()
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}
app/build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.example.khsingh.stockysingh"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.0.0'
compile "com.android.support:appcompat-v7:21.0.+"
compile project(":BottomSheet")
}
root/build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
settings.gradle
include ':app', ':BottomSheet'
project(':BottomSheet').projectDir = new File('library/BottomSheet')