APK with compileSdkVersion 23,无法在Android手机中使用APK 22

时间:2016-03-23 14:49:28

标签: android apk android-6.0-marshmallow

我有一个针对目标sdk版本23构建的应用程序,它安装并在Android版本与apk版本23中运行良好。当我尝试在带有apk 22的手机中安装此应用程序时,应用程序未安装。我认为这可能是一个问题。 当我将目标apk作为22时,应用程序运行良好。但是,后来我不得不根据android运行时权限在应用程序中进行更改。

这是gradle文件的外观:

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'


}

这是错误文件的外观:

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

2 个答案:

答案 0 :(得分:3)

将appCompat和注释从23.2.0更改为23.0.1使其正常工作。 我仍然不确定为什么23.2.0没有用,当它在Android 6的手机中没有问题时。

答案 1 :(得分:0)

为特定SDK构建应用程序时,应用程序会利用某些特定于该SDK的库;即应用程序取决于Android版本中已包含的某些类。

如果应用程序的SDK版本高于移动设备上包含的SDK版本,则在执行应用程序时,它将找不到某些配置文件/类。