I created a custom theme, deleted it and then can't delete it from AndroidManifest.xml
<p>So I tried to create a custom theme to my preference_category file, but then decided to delete it. I deleted a theme from styles.xml and the string from AndroidManifest.xml. When I build the project, it is always coming back "from the dead". And every time I delete it, it is recovering. And the string android:theme="@style/Theme.Custom" like was never deleted! The error i got is</p>

<blockquote>
  <p>Error:(51, 28) No resource found that matches the given name (at 'theme' with value '@style/Theme.Custom').
  Error:Execution failed for task ':app:processDebugResources'.
  com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/lisa/Library/Android/sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
  Information:BUILD FAILED</p>
</blockquote>

<p>And not only this happens. My ManifestFile:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.tenderplan"
android:versionCode="1"
android:versionName="1.0" &gt;

&lt;uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="23" /&gt;
&lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
&lt;uses-permission android:name="android.permission.READ_PROFILE" /&gt;
&lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
&lt;uses-permission        android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
&lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;

&lt;supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:xlargeScreens="true" /&gt;

&lt;application
    android:allowBackup="true"
    android:icon="@drawable/notif"
    android:label="Tenderplan"
    android:supportsRtl="true"
    android:theme="@style/AppTheme" &gt;
    &lt;activity
        android:name="com.example.tenderplan.activities.MainActivity"
        android:label="Tenderplan"
        android:theme="@style/AppTheme.NoActionBar" &gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.MAIN" /&gt;

            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;
    &lt;activity
        android:name="com.example.tenderplan.activities.LoginActivity"
        android:theme="@style/AppTheme" /&gt;
    &lt;activity
        android:name="com.example.tenderplan.activities.ElementActivity"
        android:theme="@style/AppTheme" /&gt;
    &lt;activity
        android:name="com.example.tenderplan.activities.SettingsActivity"
        android:label="@string/title_activity_settings"
        android:theme="@style/Theme.Custom" /&gt;
    &lt;activity android:name="com.example.tenderplan.activities.EditActivity" /&gt;
    &lt;activity android:name="com.example.tenderplan.activities.AddKeyActivity" /&gt;
    &lt;activity android:name="com.example.tenderplan.activities.AnalyticsActivity" /&gt;
    &lt;activity android:name="com.example.tenderplan.activities.AnalyticsCPActivity" /&gt;
&lt;/application&gt;
</code></pre>

<p></p>

<p>In Manifest these strings are in red color:</p>

<ol>
<li><code>http://schemas.android.com/apk/res/android"</code></li>
<li><code>android:versionCode="1" android:versionName="1.0" &gt;</code></li>
<li>supports-screens</li>
<li><code>android:allowBackup="true"
    android:icon="@drawable/notif"</code></li>
<li><code>android:theme="@style/AppTheme"</code>
and many others with themes.</li>
</ol>

<p>This is my styles.xml:</p>

<pre><code>&lt;resources&gt;

&lt;!-- Base application theme. --&gt;
&lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
    &lt;!-- Customize your theme here. --&gt;
    &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
    &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
    &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
&lt;/style&gt;

&lt;style name="AppTheme.NoActionBar"&gt;
    &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
    &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
&lt;/style&gt;

&lt;style name="AppTheme.AppBarOverlay"
    parent="ThemeOverlay.AppCompat.Dark.ActionBar" /&gt;

&lt;style name="AppTheme.PopupOverlay"
    parent="ThemeOverlay.AppCompat.Light" /&gt;
</code></pre>

<p></p>

<p>Also,my <code>import com.example.tenderplan.R;</code> can't be found in activities.</p>

<p>Could you help me find the right answer? </p>