2016-03-23 2 views
1

У меня есть приложение, предназначенное для целевой версии sdk 23, оно устанавливается и отлично работает в Android с apk версии 23. Когда я пытаюсь установить это в телефон с apk 22, приложение не устанавливает. Я думаю, что это может быть проблемой градиента. Приложение работало хорошо, когда у меня был целевой apk как 22. Но позже мне пришлось внести изменения в приложение в соответствии с разрешениями времени выполнения андроида.APK с compileSdkVersion 23, неспособный открыть основную деятельность в Android-телефоне с APK 22

Это как 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:[email protected]') 
    compile('com.crashlytics.sdk.android:crashlytics:[email protected]') { 
     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 
+0

«приложение не устанавливает» - очевидно, приложение * устанавливается *, поскольку трассировка стека происходит от запуска приложения. – CommonsWare

+0

' тег требует viewportWidth> 0' –

+0

Извините, я изменю вопрос ....« На главную деятельность не открывается » –

ответ

3

Изменение AppCompat и аннотации от 23.2.0 до 23.0.1 сделал его работу , Тем не менее, я не уверен, почему 23.2.0 не работал, когда у него не было проблем с телефонами с android. 6.

+0

Если кто-нибудь знает, в чем причина этого, будет полезно, если опубликовано .. –

+1

Wierd. .. в любом случае вы должны принять свой собственный ответ, если он разрешил проблему (возможно [это] (http://stackoverflow.com/questions/35622438/update-android-support-library-to-23-2-0-cause -error-xmlpullparserexception-bin) может быть полезно). – Marko

0

При создании приложения для конкретного SDK приложение использует некоторые библиотеки, специфичные для этого SDK; то есть приложение зависит от некоторых классов, которые уже включены в версию Android.

Если приложение построено с более высокой версией SDK, чем версия, включенная на мобильном устройстве, когда приложение выполняется, оно не найдет файлы или классы конфигурации.

Смежные вопросы