java - Android XML Generating NoSuchFieldError -
i updated build.gradle of latest android appcompat libraries , receiving below error message. appears related material design don't understand causing error:
04-18 20:35:57.227 2018-2018/com.sourcey.materialloginexample e/androidruntime: fatal exception: main process: com.sourcey.materialloginexample, pid: 2018 java.lang.nosuchfielderror: no static field abc_ic_ab_back_material of type in class landroid/support/v7/appcompat/r$drawable; or superclasses (declaration of 'android.support.v7.appcompat.r$drawable' appears in /data/data/com.sourcey.materialloginexample/files/instant-run/dex/slice-slice_4-classes.dex) @ android.support.v7.widget.toolbarwidgetwrapper.<init>(toolbarwidgetwrapper.java:91) @ android.support.v7.widget.toolbar.getwrapper(toolbar.java:1775) @ android.support.v7.widget.actionbaroverlaylayout.getdecortoolbar(actionbaroverlaylayout.java:538) @ android.support.v7.widget.actionbaroverlaylayout.pullchildren(actionbaroverlaylayout.java:530) @ android.support.v7.widget.actionbaroverlaylayout.setwindowcallback(actionbaroverlaylayout.java:606) @ android.support.v7.app.appcompatdelegateimplv7.createsubdecor(appcompatdelegateimplv7.java:384) @ android.support.v7.app.appcompatdelegateimplv7.ensuresubdecor(appcompatdelegateimplv7.java:300) @ android.support.v7.app.appcompatdelegateimplv7.setcontentview(appcompatdelegateimplv7.java:264) @ android.support.v7.app.appcompatactivity.setcontentview(appcompatactivity.java:129) @ com.troychuinard.fanpolls.loadingactivity.oncreate(loadingactivity.java:26) @ android.app.activity.performcreate(activity.java:6272) @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1108) @ android.app.activitythread.performlaunchactivity(activitythread.java:2387) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2494) @ android.app.activitythread.access$900(activitythread.java:157) @ android.app.activitythread$h.handlemessage(activitythread.java:1356) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:148) @ android.app.activitythread.main(activitythread.java:5527) @ java.lang.reflect.method.invoke(native method) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:730) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:620)
included associated xml:
<?xml version="1.0" encoding="utf-8"?> <linearlayout android:background="@color/logo_red" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:fitssystemwindows="true" tools:context="com.troychuinard.fanpolls.loadingactivity"> <imageview android:layout_margintop="40dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:background="@drawable/fan_polls_logo"/> <progressbar android:layout_gravity="center_horizontal" android:id="@+id/progressbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:indeterminate="true" android:progressdrawable="@drawable/loading_spinnter_white"/> <textview android:layout_gravity="center_horizontal" android:textsize="24sp" android:textcolor="@color/white" android:gravity="center" android:layout_below="@+id/progressbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/loading_text"/> </linearlayout>
Comments
Post a Comment