What I am trying to do is use the new android support design library mentioned here: http://android-developers.blogspot.com/2015/05/android-design-support-library.html.
I had the same error. After more Search i have got solution. Just Change build.gradle (Module: app)
apply plugin: 'com.android.application'
android {
compileSdkVersion 24 // previous 23
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "com.ventrux.thevideoapp"
minSdkVersion 15
targetSdkVersion 24 // previous 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
compile 'com.android.support:appcompat-v7:24.2.1' // previous 23.2.1
compile 'com.android.support:design:24.2.1' // previous 23.2.1
compile files('libs/YouTubeAndroidPlayerApi.jar')
}
Xml for FloatingActionButton