Zuerst möchte ich Ihnen sagen, dass ich neu auf der Website bin. Alle Probleme in Bezug auf die Veröffentlichung, bitte verzeihen Sie. Früher habe ich die Lösungen von dieser Seite gefunden, um die Probleme zu lösen. Aber hier blieb ich stecken. Ich habe viel gesucht und versucht, es mit den angebotenen Lösungen zu lösen, aber das Problem ist immer noch da. Bitte hilf mir. HierEs wurde keine Ressource gefunden, die mit dem angegebenen Namen übereinstimmt (unter 'theme' mit dem Wert '@ style/AppTheme.AppBarLayout')
ist der Code
Layout-Datei
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.example.user.securedata.DataProtectionSelective">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarLayout">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_main" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_dialog_email" />
</android.support.design.widget.CoordinatorLayout>
styles.xml
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
build.gradle
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.android.support:recyclerview-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
Sie haben nicht 'AppTheme.AppBarLayout' in Ihrem Stil. Ich denke, du musst es in 'AppTheme.AppBarOverlay' ändern. – SripadRaj
ändere in – DkThakur
Es tut mir leid. Ich habe den Fehler, den ich gemacht habe. Bitte ignorieren Sie – Shekar