1

I have an app built for target sdk version 23, it installs and works well in android with apk version 23. When I try to install this in phone with apk 22, the application is not installing. I think this could be a gradle problem. The application was working well when I had the target apk as 22. But, later I had to make changes in the app as per the android run-time permissions.

This is how the gradle file looks :

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
    maven { url 'https://maven.fabric.io/public' }
}

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"
    defaultConfig {
        applicationId 'io.newfaces'
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 19
        versionName "1.1.1_dev3"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    signingConfigs {
        release {
            def console = System.console()
            if (console != null) {
                storeFile file("../newfaces_release.keystore")
                storePassword = new String(console.readPassword("\nKeystore password: "))
                keyAlias "newfaces"
                keyPassword = new String(console.readPassword("\nKey password: "))
            }
        }
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }
    }
    productFlavors {
    }
    packagingOptions {
        exclude 'LICENSE.txt'
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile('com.android.support:support-v4:23.2.0') {
        force = true
    }
    compile 'com.google.android.gms:play-services:7.5.0'

    compile 'com.android.support:appcompat-v7:23.2.0'
    compile project(':ParseLoginUI')
    compile project(':viewpagerindicator')
    compile 'com.github.castorflex.smoothprogressbar:library:0.5.2'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
    compile 'de.hdodenhof:circleimageview:1.2.2'
    compile ('org.apmem.tools:layouts:1.9@aar')
    compile('com.crashlytics.sdk.android:crashlytics:2.3.1@aar') {
        transitive = true;
    }

    //Support annotations
    androidTestCompile 'com.android.support:support-annotations:23.2.0'
    //Automated Tests
    androidTestCompile 'com.android.support.test:runner:0.3'
    // Set this dependency to use JUnit 4 rules
    androidTestCompile 'com.android.support.test:rules:0.3'
    // Set this dependency to build and run Espresso tests
    androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2'


}

This is how the error file looks :

03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate: Exception while inflating <vector>
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate: org.xmlpull.v1.XmlPullParserException: Binary XML file line #17<vector> tag requires viewportWidth > 0
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.support.graphics.drawable.VectorDrawableCompat.updateStateFromTypedArray(VectorDrawableCompat.java:535)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.support.graphics.drawable.VectorDrawableCompat.inflate(VectorDrawableCompat.java:472)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.support.graphics.drawable.VectorDrawableCompat.createFromXmlInner(VectorDrawableCompat.java:436)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.support.v7.widget.AppCompatDrawableManager$VdcInflateDelegate.createFromXmlInner(AppCompatDrawableManager.java:829)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:303)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:178)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:173)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.support.v7.widget.TintTypedArray.getDrawable(TintTypedArray.java:60)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.support.v7.widget.Toolbar.<init>(Toolbar.java:254)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.support.v7.widget.Toolbar.<init>(Toolbar.java:196)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at java.lang.reflect.Constructor.constructNative(Native Method)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.view.LayoutInflater.createView(LayoutInflater.java:594)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.view.LayoutInflater.parseInclude(LayoutInflater.java:816)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.view.LayoutInflater.rInflate(LayoutInflater.java:745)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at io.newfaces.activity.MainActivity.onCreate(MainActivity.java:105)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.app.Activity.performCreate(Activity.java:5231)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.app.ActivityThread.access$800(ActivityThread.java:135)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.os.Handler.dispatchMessage(Handler.java:102)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.os.Looper.loop(Looper.java:136)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at android.app.ActivityThread.main(ActivityThread.java:5001)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at java.lang.reflect.Method.invokeNative(Native Method)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at java.lang.reflect.Method.invoke(Method.java:515)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
03-23 15:39:32.572 3585-3585/io.newfaces E/VdcInflateDelegate:     at dalvik.system.NativeStart.main(Native Method)
03-23 15:39:32.572 3585-3585/io.newfaces D/AndroidRuntime: Shutting down VM
03-23 15:39:32.572 3585-3585/io.newfaces W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41a74ba8)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime: FATAL EXCEPTION: main
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime: Process: io.newfaces, PID: 3585
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{io.newfaces/io.newfaces.activity.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v7.widget.Toolbar
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.access$800(ActivityThread.java:135)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:136)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5001)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Method.invokeNative(Native Method)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:515)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at dalvik.system.NativeStart.main(Native Method)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:  Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v7.widget.Toolbar
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.createView(LayoutInflater.java:620)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.parseInclude(LayoutInflater.java:816)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.rInflate(LayoutInflater.java:745)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at io.newfaces.activity.MainActivity.onCreate(MainActivity.java:105)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.Activity.performCreate(Activity.java:5231)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.access$800(ActivityThread.java:135) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:136) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5001) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Method.invokeNative(Native Method) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:515) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at dalvik.system.NativeStart.main(Native Method) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:  Caused by: java.lang.reflect.InvocationTargetException
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Constructor.constructNative(Native Method)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.createView(LayoutInflater.java:594)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.parseInclude(LayoutInflater.java:816) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.rInflate(LayoutInflater.java:745) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at io.newfaces.activity.MainActivity.onCreate(MainActivity.java:105) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.Activity.performCreate(Activity.java:5231) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.access$800(ActivityThread.java:135) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:136) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5001) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Method.invokeNative(Native Method) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:515) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at dalvik.system.NativeStart.main(Native Method) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:  Caused by: android.content.res.Resources$NotFoundException: File res/drawable-v19/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020016
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.content.res.Resources.loadDrawable(Resources.java:2096)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.content.res.Resources.getDrawable(Resources.java:700)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.TintResources.superGetDrawable(TintResources.java:48)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.AppCompatDrawableManager.onDrawableLoadedFromResources(AppCompatDrawableManager.java:374)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.TintResources.getDrawable(TintResources.java:44)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:323)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:180)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:173)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.TintTypedArray.getDrawable(TintTypedArray.java:60)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.Toolbar.<init>(Toolbar.java:254)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.Toolbar.<init>(Toolbar.java:196)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Constructor.constructNative(Native Method) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.createView(LayoutInflater.java:594) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.parseInclude(LayoutInflater.java:816) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.rInflate(LayoutInflater.java:745) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at io.newfaces.activity.MainActivity.onCreate(MainActivity.java:105) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.Activity.performCreate(Activity.java:5231) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.access$800(ActivityThread.java:135) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:136) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5001) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Method.invokeNative(Native Method) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:515) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at dalvik.system.NativeStart.main(Native Method) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:  Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #17: invalid drawable tag vector
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:933)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.graphics.drawable.Drawable.createFromXml(Drawable.java:877)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.content.res.Resources.loadDrawable(Resources.java:2092)
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.content.res.Resources.getDrawable(Resources.java:700) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.TintResources.superGetDrawable(TintResources.java:48) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.AppCompatDrawableManager.onDrawableLoadedFromResources(AppCompatDrawableManager.java:374) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.TintResources.getDrawable(TintResources.java:44) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:323) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:180) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:173) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.TintTypedArray.getDrawable(TintTypedArray.java:60) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.Toolbar.<init>(Toolbar.java:254) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.widget.Toolbar.<init>(Toolbar.java:196) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Constructor.constructNative(Native Method) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.createView(LayoutInflater.java:594) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.parseInclude(LayoutInflater.java:816) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.rInflate(LayoutInflater.java:745) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at io.newfaces.activity.MainActivity.onCreate(MainActivity.java:105) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.Activity.performCreate(Activity.java:5231) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.access$800(ActivityThread.java:135) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:136) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5001) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Method.invokeNative(Native Method) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:515) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
03-23 15:39:32.582 3585-3585/io.newfaces E/AndroidRuntime:     at dalvik.system.NativeStart.main(Native Method) 
03-23 15:39:37.507 3585-3890/io.newfaces E/GAv4: Successfully bound to service but never got onServiceConnected callback
Floern
  • 33,559
  • 24
  • 104
  • 119
Dinesh
  • 889
  • 14
  • 34

2 Answers2

3

Changing the appCompat and annotations from 23.2.0 to 23.0.1 made it work. Still I am not sure why 23.2.0 did not work, when it had no problems in phones with android 6.

Dinesh
  • 889
  • 14
  • 34
  • 1
    Wierd... anway you should accept your own answer if it has resolved the issue (maybe [this](http://stackoverflow.com/questions/35622438/update-android-support-library-to-23-2-0-cause-error-xmlpullparserexception-bin) could be helpful). – Marko Mar 23 '16 at 15:21
0

When you build an application for a specific SDK, the application leverages on some libraries that are specific for that SDK; i.e. the application depends on some classes that are already included on the Android version.

If the application is built with a higher SDK version than the one included on the mobile, when the application is executed it won't find some configuration files/classes.

Francesc Lordan
  • 519
  • 4
  • 24