Support Library rev 23.1 -> App stürzt ab

  • 3 Antworten
  • Letztes Antwortdatum
N

niko132

Neues Mitglied
9
Guten Abend liebe Community,
Ich habe gerade eben die Support Library aktualisiert und seitdem stürzt meine App ab

Code:
10-20 21:35:30.479: E/AndroidRuntime(17557): FATAL EXCEPTION: main
10-20 21:35:30.479: E/AndroidRuntime(17557): Process: de.franziskaneum, PID: 17557
10-20 21:35:30.479: E/AndroidRuntime(17557): java.lang.RuntimeException: Unable to start activity ComponentInfo{de.franziskaneum/de.franziskaneum.news.NewsActivity}: android.view.InflateException: Binary XML file line #83: Error inflating class android.support.design.widget.CollapsingToolbarLayout
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2367)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.app.ActivityThread.access$800(ActivityThread.java:148)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.os.Handler.dispatchMessage(Handler.java:102)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.os.Looper.loop(Looper.java:135)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.app.ActivityThread.main(ActivityThread.java:5274)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at java.lang.reflect.Method.invoke(Native Method)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at java.lang.reflect.Method.invoke(Method.java:372)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)
10-20 21:35:30.479: E/AndroidRuntime(17557): Caused by: android.view.InflateException: Binary XML file line #83: Error inflating class android.support.design.widget.CollapsingToolbarLayout
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.view.LayoutInflater.createView(LayoutInflater.java:633)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:249)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at de.franziskaneum.news.NewsActivity.onCreate(NewsActivity.java:63)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.app.Activity.performCreate(Activity.java:5977)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)
10-20 21:35:30.479: E/AndroidRuntime(17557):     ... 10 more
10-20 21:35:30.479: E/AndroidRuntime(17557): Caused by: java.lang.reflect.InvocationTargetException
10-20 21:35:30.479: E/AndroidRuntime(17557):     at java.lang.reflect.Constructor.newInstance(Native Method)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.view.LayoutInflater.createView(LayoutInflater.java:607)
10-20 21:35:30.479: E/AndroidRuntime(17557):     ... 22 more
10-20 21:35:30.479: E/AndroidRuntime(17557): Caused by: java.lang.NoSuchFieldError: No static field TextAppearance_android_shadowColor of type I in class Landroid/support/design/R$styleable; or its superclasses (declaration of 'android.support.design.R$styleable' appears in /data/app/de.franziskaneum-1/base.apk)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.support.design.widget.CollapsingTextHelper.setExpandedTextAppearance(CollapsingTextHelper.java:230)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.support.design.widget.CollapsingToolbarLayout.<init>(CollapsingToolbarLayout.java:185)
10-20 21:35:30.479: E/AndroidRuntime(17557):     at android.support.design.widget.CollapsingToolbarLayout.<init>(CollapsingToolbarLayout.java:126)
10-20 21:35:30.479: E/AndroidRuntime(17557):     ... 25 more

und das layout, bei dem die App abstürzt (gekürzt)

Code:
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res/de.franziskaneum"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:transitionGroup="true" >

    <android.support.v4.widget.NestedScrollView >
    </android.support.v4.widget.NestedScrollView>

    <android.support.design.widget.AppBarLayout
        android:id="@+id/app_bar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@android:color/transparent" >

        <android.support.design.widget.CollapsingToolbarLayout
            android:id="@+id/collapsing_toolbar"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:layout_scrollFlags="scroll|exitUntilCollapsed"
            android:theme="@style/ToolbarStyle"
            app:contentScrim="@color/ColorPrimary"
            app:expandedTitleMarginStart="8dp"
            app:title="@string/news"
            app:toolbarId="@id/toolbar" >

            <ImageView />

            <android.support.v7.widget.Toolbar />
        </android.support.design.widget.CollapsingToolbarLayout>
    </android.support.design.widget.AppBarLayout>

</android.support.design.widget.CoordinatorLayout>

Ich weiß leider echt nicht, wie ich das beheben soll

MfG Niko
 
Ich dachte eher, dass es an der Library liegt, weil in dem Error auf Landroid/support/design/R$styleable hingewiesen wird

Eigentlich sollte es keine zwei XML's oder ähnliches geben, da das Projekt vor dem Update der Library noch perfekt lief aber ich werde später trotzdem mal nachschauen
 
Nach etwas mehr googeln habe ich selber die Lösung gefunden.

Ich hatte alle Libraries, bis auf die appcompat aktualisiert.
Also hieß es für mich appcompat aktualisieren und schon funktioniert alles wieder

Trotzdem vielen dank an @markus.tullius für die antwort :)
 

Ähnliche Themen

K
  • kev1807
Antworten
3
Aufrufe
148
kev1807
K
S
Antworten
8
Aufrufe
814
swa00
swa00
K
Antworten
3
Aufrufe
460
mezzothunder
mezzothunder
Zurück
Oben Unten