App automatically close

By nestingif at 2016-04-19 • 0 collector • 935 pageviews

hello. im using the latest source for anroid app. i got an error on android monitor

4-19 02:07:07.682 4324-4324/? E/AndroidRuntime: in writeCrashedAppName, pkgName :com.lincanbin.carbonforum
04-19 02:07:07.682 4324-4324/? D/AndroidRuntime: file written successfully with content: com.lincanbin.carbonforum StringBuffer : ;com.lincanbin.carbonforum
04-19 02:07:07.692 4324-4324/? I/Process: Sending signal. PID: 4324 SIG: 9
04-19 02:07:07.692 4324-4324/? E/AndroidRuntime: FATAL EXCEPTION: main
                                                 Process: com.lincanbin.carbonforum, PID: 4324
                                                 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.lincanbin.carbonforum/com.lincanbin.carbonforum.IndexActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class android.support.design.widget.FloatingActionButton
                                                     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
                                                     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
                                                     at android.app.ActivityThread.access$800(ActivityThread.java:135)
                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
                                                     at android.os.Handler.dispatchMessage(Handler.java:102)
                                                     at android.os.Looper.loop(Looper.java:136)
                                                     at android.app.ActivityThread.main(ActivityThread.java:5021)
                                                     at java.lang.reflect.Method.invokeNative(Native Method)
                                                     at java.lang.reflect.Method.invoke(Method.java:515)
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827)
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643)
                                                     at dalvik.system.NativeStart.main(Native Method)
                                                  Caused by: android.view.InflateException: Binary XML file line #26: Error inflating class android.support.design.widget.FloatingActionButton
                                                     at android.view.LayoutInflater.createView(LayoutInflater.java:620)
                                                     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
                                                     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267)
                                                     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)
                                                     at com.lincanbin.carbonforum.IndexActivity.onCreate(IndexActivity.java:71)
                                                     at android.app.Activity.performCreate(Activity.java:5231)
                                                     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
                                                     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
                                                     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
                                                     at android.app.ActivityThread.access$800(ActivityThread.java:135) 
                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
                                                     at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                     at android.os.Looper.loop(Looper.java:136) 
                                                     at android.app.ActivityThread.main(ActivityThread.java:5021) 
                                                     at java.lang.reflect.Method.invokeNative(Native Method) 
                                                     at java.lang.reflect.Method.invoke(Method.java:515) 
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827) 
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643) 
                                                     at dalvik.system.NativeStart.main(Native Method) 
                                                  Caused by: java.lang.reflect.InvocationTargetException
                                                     at java.lang.reflect.Constructor.constructNative(Native Method)
                                                     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
                                                     at android.view.LayoutInflater.createView(LayoutInflater.java:594)
                                                     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
                                                     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267) 
                                                     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129) 
                                                     at com.lincanbin.carbonforum.IndexActivity.onCreate(IndexActivity.java:71) 
                                                     at android.app.Activity.performCreate(Activity.java:5231) 
                                                     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090) 
                                                     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) 
                                                     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
                                                     at android.app.ActivityThread.access$800(ActivityThread.java:135) 
                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
                                                     at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                     at android.os.Looper.loop(Looper.java:136) 
                                                     at android.app.ActivityThread.main(ActivityThread.java:5021) 
                                                     at java.lang.reflect.Method.invokeNative(Native Method) 
                                                     at java.lang.reflect.Method.invoke(Method.java:515) 
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827) 
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643) 
                                                     at dalvik.system.NativeStart.main(Native Method) 
                                                  Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_add_24dp.xml from drawable resource ID #0x7f02004e
                                                     at android.content.res.Resources.loadDrawable(Resources.java:2096)
                                                     at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
                                                     at android.widget.ImageView.<init>(ImageView.java:129)
                                                     at android.widget.ImageButton.<init>(ImageButton.java:87)
                                                     at android.support.v7.widget.AppCompatImageButton.<init>(AppCompatImageButton.java:57)
                                                     at android.support.design.widget.VisibilityAwareImageButton.<init>(VisibilityAwareImageButton.java:37)
                                                     at android.support.design.widget.FloatingActionButton.<init>(FloatingActionButton.java:109)
                                                     at android.support.design.widget.FloatingActionButton.<init>(FloatingActionButton.java:105)
                                                     at java.lang.reflect.Constructor.constructNative(Native Method) 
                                                     at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
                                                     at android.view.LayoutInflater.createView(LayoutInflater.java:594) 
                                                     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
                                                     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267) 
                                                     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129) 
                                                     at com.lincanbin.carbonforum.IndexActivity.onCreate(IndexActivity.java:71) 
                                                     at android.app.Activity.performCreate(Activity.java:5231) 
                                                     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090) 
                                                     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) 
                                                     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
                                                     at android.app.ActivityThread.access$800(ActivityThread.java:135) 
                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
                                                     at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                     at android.os.Looper.loop(Looper.java:136) 
                                                     at android.app.ActivityThread.main(ActivityThread.java:5021) 
                                                     at java.lang.reflect.Method.invokeNative(Native Method) 
                                                     at java.lang.reflect.Method.invoke(Method.java:515) 
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827) 
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643) 
                                                     at dalvik.system.NativeStart.main(Native Method) 
                                                  Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #1: invalid drawable tag vector
                                                     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:933)
                                                     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:877)
                                                     at android.content.res.Resources.loadDrawable(Resources.java:2092)
                                                     at android.content.res.TypedArray.getDrawable(TypedArray.java:602) 
                                                     at android.widget.ImageView.<init>(ImageView.java:129) 
                                                     at android.widget.ImageButton.<init>(ImageButton.java:87) 
                                                     at android.support.v7.widget.AppCompatImageButton.<init>(AppCompatImageButton.java:57) 
                                                     at android.support.design.widget.VisibilityAwareImageButton.<init>(VisibilityAwareImageButton.java:37) 
                                                     at android.support.design.widget.FloatingActionButton.<init>(FloatingActionButton.java:109) 
                                                     at android.support.design.widget.FloatingActionButton.<init>(FloatingActionButton.java:105) 
                                                     at java.lang.reflect.Constructor.constructNative(Native Method) 
                                                     at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
                                                     at android.view.LayoutInflater.createView(LayoutInflater.java:594) 
                                                     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
                                                     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267) 
                                                     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129) 
                                                     at com.lincanbin.carbonforum.IndexActivity.onCreate(IndexActivity.java:71) 
                                                     at android.app.Activity.performCreate(Activity.java:5231) 
                                                     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090) 
                                                     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) 
                                                     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
                                                     at android.app.ActivityThread.access$800(ActivityThread.java:135) 
                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
                                                     at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                     at android.os.Looper.loop(Looper.java:136) 
                                                     at android.app.ActivityThread.main(ActivityThread.java:5021) 
                                                     at java.lang.reflect.Method.invokeNative(Native Method) 
                                                     at java.lang.reflect.Method.invoke(Method.java:515) 
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827) 
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643) 
                                                     at dalvik.system.NativeStart.main(Native Method)


11 Replies | Last update 10 days ago
2016-04-20   #1

http://android-developers.blogspot.jp/2016/02/android-support-library-232.html


replace app/build.gradle with:

apply plugin: 'com.android.application'

android {
    signingConfigs {
    }
    compileSdkVersion 23
    buildToolsVersion '23.0.3'
    defaultConfig {
        applicationId "com.lincanbin.carbonforum"
        minSdkVersion 15
        multiDexEnabled true
        targetSdkVersion 23
        versionCode 22
        versionName '5.0.1'
        // To disable this functionality (and gain the true advantage and space savings of this Support Library)
        generatedDensities = []  
    }
    // This is handled for you by the 2.0+ Gradle Plugin  
    aaptOptions {  
        additionalParameters "--no-version-vectors"  
    }  
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
    lintOptions {
        abortOnError false
    }
    // http://tools.android.com/tech-docs/new-build-system
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile('com.mikepenz:materialdrawer:4.6.4@aar') {
        transitive = true
    }
    compile 'com.android.support:support-v4:23.2.0'
    compile 'com.android.support:appcompat-v7:23.2.0'
    compile 'com.android.support:recyclerview-v7:23.2.0'
    compile 'com.android.support:cardview-v7:23.2.0'
    compile 'com.android.support:design:23.2.0'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'de.hdodenhof:circleimageview:2.0.0'
    compile 'com.mikepenz:google-material-typeface:2.2.0.1@aar'
}


Or use Android Studio 2.0 and gradle 2.0+. 

2016-04-20   #2

i upgrade my studio in 2.0 but im getting error again

E/AndroidRuntime: FATAL EXCEPTION: main
                                                 Process: com.lincanbin.carbonforum, PID: 3316
                                                 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.lincanbin.carbonforum/com.lincanbin.carbonforum.IndexActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class android.support.design.widget.FloatingActionButton
                                                     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
                                                     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
                                                     at android.app.ActivityThread.access$800(ActivityThread.java:135)
                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
                                                     at android.os.Handler.dispatchMessage(Handler.java:102)
                                                     at android.os.Looper.loop(Looper.java:136)
                                                     at android.app.ActivityThread.main(ActivityThread.java:5021)
                                                     at java.lang.reflect.Method.invokeNative(Native Method)
                                                     at java.lang.reflect.Method.invoke(Method.java:515)
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827)
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643)
                                                     at dalvik.system.NativeStart.main(Native Method)
                                                  Caused by: android.view.InflateException: Binary XML file line #26: Error inflating class android.support.design.widget.FloatingActionButton
                                                     at android.view.LayoutInflater.createView(LayoutInflater.java:620)
                                                     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
                                                     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267)
                                                     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)
                                                     at com.lincanbin.carbonforum.IndexActivity.onCreate(IndexActivity.java:71)
                                                     at android.app.Activity.performCreate(Activity.java:5231)
                                                     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
                                                     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
                                                     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
                                                     at android.app.ActivityThread.access$800(ActivityThread.java:135) 
                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
                                                     at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                     at android.os.Looper.loop(Looper.java:136) 
                                                     at android.app.ActivityThread.main(ActivityThread.java:5021) 
                                                     at java.lang.reflect.Method.invokeNative(Native Method) 
                                                     at java.lang.reflect.Method.invoke(Method.java:515) 
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827) 
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643) 
                                                     at dalvik.system.NativeStart.main(Native Method) 
                                                  Caused by: java.lang.reflect.InvocationTargetException
                                                     at java.lang.reflect.Constructor.constructNative(Native Method)
                                                     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
                                                     at android.view.LayoutInflater.createView(LayoutInflater.java:594)
                                                     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
                                                     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267) 
                                                     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129) 
                                                     at com.lincanbin.carbonforum.IndexActivity.onCreate(IndexActivity.java:71) 
                                                     at android.app.Activity.performCreate(Activity.java:5231) 
                                                     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090) 
                                                     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) 
                                                     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
                                                     at android.app.ActivityThread.access$800(ActivityThread.java:135) 
                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
                                                     at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                     at android.os.Looper.loop(Looper.java:136) 
                                                     at android.app.ActivityThread.main(ActivityThread.java:5021) 
                                                     at java.lang.reflect.Method.invokeNative(Native Method) 
                                                     at java.lang.reflect.Method.invoke(Method.java:515) 
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827) 
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643) 
                                                     at dalvik.system.NativeStart.main(Native Method) 
                                                  Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_add_24dp.xml from drawable resource ID #0x7f02004e
                                                     at android.content.res.Resources.loadDrawable(Resources.java:2096)
                                                     at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
                                                     at android.widget.ImageView.<init>(ImageView.java:129)
                                                     at android.widget.ImageButton.<init>(ImageButton.java:87)
                                                     at android.support.v7.widget.AppCompatImageButton.<init>(AppCompatImageButton.java:57)
                                                     at android.support.design.widget.VisibilityAwareImageButton.<init>(VisibilityAwareImageButton.java:37)
                                                     at android.support.design.widget.FloatingActionButton.<init>(FloatingActionButton.java:109)
                                                     at android.support.design.widget.FloatingActionButton.<init>(FloatingActionButton.java:105)
                                                     at java.lang.reflect.Constructor.constructNative(Native Method) 
                                                     at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
                                                     at android.view.LayoutInflater.createView(LayoutInflater.java:594) 
                                                     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
                                                     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267) 
                                                     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129) 
                                                     at com.lincanbin.carbonforum.IndexActivity.onCreate(IndexActivity.java:71) 
                                                     at android.app.Activity.performCreate(Activity.java:5231) 
                                                     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090) 
                                                     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) 
                                                     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
                                                     at android.app.ActivityThread.access$800(ActivityThread.java:135) 
                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
                                                     at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                     at android.os.Looper.loop(Looper.java:136) 
                                                     at android.app.ActivityThread.main(ActivityThread.java:5021) 
                                                     at java.lang.reflect.Method.invokeNative(Native Method) 
                                                     at java.lang.reflect.Method.invoke(Method.java:515) 
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827) 
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643) 
                                                     at dalvik.system.NativeStart.main(Native Method) 
                                                  Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #1: invalid drawable tag vector
                                                     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:933)
                                                     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:877)
                                                     at android.content.res.Resources.loadDrawable(Resources.java:2092)
                                                     at android.content.res.TypedArray.getDrawable(TypedArray.java:602) 
                                                     at android.widget.ImageView.<init>(ImageView.java:129) 
                                                     at android.widget.ImageButton.<init>(ImageButton.java:87) 
                                                     at android.support.v7.widget.AppCompatImageButton.<init>(AppCompatImageButton.java:57) 
                                                     at android.support.design.widget.VisibilityAwareImageButton.<init>(VisibilityAwareImageButton.java:37) 
                                                     at android.support.design.widget.FloatingActionButton.<init>(FloatingActionButton.java:109) 
                                                     at android.support.design.widget.FloatingActionButton.<init>(FloatingActionButton.java:105) 
                                                     at java.lang.reflect.Constructor.constructNative(Native Method) 
                                                     at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
                                                     at android.view.LayoutInflater.createView(LayoutInflater.java:594) 
                                                     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
                                                     at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
                                                     at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
                                                     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267) 
                                                     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129) 
                                                     at com.lincanbin.carbonforum.IndexActivity.onCreate(IndexActivity.java:71) 
                                                     at android.app.Activity.performCreate(Activity.java:5231) 
                                                     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090) 
                                                     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) 
                                                     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
                                                     at android.app.ActivityThread.access$800(ActivityThread.java:135) 
                                                     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
                                                     at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                     at android.os.Looper.loop(Looper.java:136) 
                                                     at android.app.ActivityThread.main(ActivityThread.java:5021) 
                                                     at java.lang.reflect.Method.invokeNative(Native Method)


2016-04-20   #3

Reply to #2 @nestingif :

replace app/build.gradle with #1. 

2016-04-20   #4

Reply to #3 @lincanbin :

what #1? can you elaborate?

2016-04-20   #5
2016-04-20   #6

Reply to #5 @lincanbin :

yes i just copy that and it didn't work. same error 

2016-04-20   #7

Reply to #6 @nestingif :

Try this:

apply plugin: 'com.android.application'

android {
    signingConfigs {
    }
    compileSdkVersion 23
    buildToolsVersion '23.0.3'
    defaultConfig {
        applicationId "com.lincanbin.carbonforum"
        minSdkVersion 15
        multiDexEnabled true
        targetSdkVersion 23
        versionCode 22
        versionName '5.0.1'
        // To disable this functionality (and gain the true advantage and space savings of this Support Library)
        // http://android-developers.blogspot.sg/2016/02/android-support-library-232.html
        // vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
    lintOptions {
        abortOnError false
    }
    // http://tools.android.com/tech-docs/new-build-system
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile('com.mikepenz:materialdrawer:4.6.4@aar') {
        transitive = true
    }
    compile 'com.android.support:support-v4:23.2.0'
    compile 'com.android.support:appcompat-v7:23.2.0'
    compile 'com.android.support:recyclerview-v7:23.2.0'
    compile 'com.android.support:cardview-v7:23.2.0'
    compile 'com.android.support:design:23.2.0'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'de.hdodenhof:circleimageview:2.0.0'
    compile 'com.mikepenz:google-material-typeface:2.2.0.1@aar'
}


2016-04-20   #8

thanks its fixed. it works.

2016-04-20   #9

i just change the head bar color and icon i got this error


8973-18973/com.lincanbin.carbonforum I/Process: Sending signal. PID: 18973 SIG: 9
04-19 21:09:42.844 18973-18973/com.lincanbin.carbonforum E/AndroidRuntime: FATAL EXCEPTION: main
                                                                           Process: com.lincanbin.carbonforum, PID: 18973
                                                                           android.view.InflateException: Binary XML file line #36: Error inflating class de.hdodenhof.circleimageview.CircleImageView
                                                                               at android.view.LayoutInflater.createView(LayoutInflater.java:620)
                                                                               at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
                                                                               at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
                                                                               at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
                                                                               at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
                                                                               at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
                                                                               at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
                                                                               at com.lincanbin.carbonforum.adapter.TopicAdapter.onCreateViewHolder(TopicAdapter.java:53)
                                                                               at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:5476)
                                                                               at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4701)
                                                                               at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4611)
                                                                               at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1988)
                                                                               at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1384)
                                                                               at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1347)
                                                                               at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)
                                                                               at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3026)
                                                                               at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2903)
                                                                               at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3277)
                                                                               at android.view.View.layout(View.java:14877)
                                                                               at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                               at android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:596)
                                                                               at android.view.View.layout(View.java:14877)
                                                                               at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                               at android.support.design.widget.CoordinatorLayout.layoutChild(CoordinatorLayout.java:1087)
                                                                               at android.support.design.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:797)
                                                                               at android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:811)
                                                                               at android.view.View.layout(View.java:14877)
                                                                               at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                               at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
                                                                               at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
                                                                               at android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
                                                                               at android.view.View.layout(View.java:14877)
                                                                               at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                               at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
                                                                               at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
                                                                               at android.view.View.layout(View.java:14877)
                                                                               at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                               at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1183)
                                                                               at android.view.View.layout(View.java:14877)
                                                                               at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                               at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
                                                                               at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
                                                                               at android.view.View.layout(View.java:14877)
                                                                               at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                               at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
                                                                               at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
                                                                               at android.view.View.layout(View.java:14877)
                                                                               at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                               at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
                                                                               at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
                                                                               at android.view.View.layout(View.java:14877)
                                                                               at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                               at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
                                                                               at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
                                                                               at android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
                                                                               at android.view.View.layout(View.java:14877)
                                                                               at android.view.ViewGroup.layout(ViewGroup.java:4631)
                                                                           at android.widget.Fra


2016-04-20   #10

Reply to #9 @nestingif :

How did you change it?

10 days ago   #11

Why are people here so much worrie about the things that are not easy even on superiorpapers essays? I think that it has something to do with the way that it goes on and the way that it works for us.

Requires Login

Loading...