Error inflating class Android support design

前端 未结 5 1843
囚心锁ツ
囚心锁ツ 2021-02-19 08:03

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.

5条回答
  •  遇见更好的自我
    2021-02-19 08:52

    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

      
    

提交回复
热议问题