Android - Error:String types not allowed (at 'imageViewScramble' with value '')
<p>I'm really having trouble with this one, I tried searching on the internet but didn't find anything similar.</p>
<p>When I try to build my app, it gives my this error</p>
<pre><code>C:\Users\name\AndroidStudioProjects\project\app\build\intermediates\res\merged\debug\values\values.xml
</code></pre>
<p>Error:(703, 69) String types not allowed (at 'imageViewScramble' with value '').
Error:(703, 69) String types not allowed (at 'imageViewScramble' with value '').
Error:Execution failed for task ':app:processDebugResources'.</p>
<blockquote>
<p>com.android.ide.common.process.ProcessException: Failed to execute aapt.</p>
</blockquote>
<p>When i jump to source it points me at this:</p>
<pre><code>&lt;style name=&quot;Base.TextAppearance.AppCompat.SearchResult&quot; parent=&quot;&quot;&gt;
    &lt;item name=&quot;android:textStyle&quot;&gt;normal&lt;/item&gt;
    &lt;item name=&quot;android:textColor&quot;&gt;?android:textColorPrimary&lt;/item&gt;
    &lt;item name=&quot;android:textColorHint&quot;&gt;?android:textColorHint&lt;/item&gt;
&lt;/style&gt;
</code></pre>
<p>The strange thing is, that imageViewScramble isn't even in my activity_main.xml file now that I removed it.
I tried adding a drawable resource to this ImageView, so that could be the problem.</p>
<p>Here is my XML file:</p>
<pre><code>&lt;xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
xmlns:tools=&quot;http://schemas.android.com/tools&quot;
android:id=&quot;@+id/activity_main&quot;
android:layout_width=&quot;match_parent&quot;
android:layout_height=&quot;match_parent&quot;
tools:context=&quot;com.example.tom.timer.MainActivity&quot;&gt;

&lt;android.support.design.widget.AppBarLayout
    android:layout_width=&quot;match_parent&quot;
    android:layout_height=&quot;wrap_content&quot;
    android:theme=&quot;@style/AppTheme.AppBarOverlay&quot;
    android:id=&quot;@+id/appBarLayout&quot;&gt;

    &lt;android.support.v7.widget.Toolbar
        android:id=&quot;@+id/toolbarMainSession&quot;
        android:layout_width=&quot;match_parent&quot;
        android:layout_height=&quot;?attr/actionBarSize&quot;
        android:background=&quot;?attr/colorPrimary&quot;

        android:theme=&quot;@style/ThemeOverlay.AppCompat.ActionBar&quot;
        android:layout_gravity=&quot;top&quot;&gt;
    &lt;LinearLayout
        android:layout_width=&quot;fill_parent&quot;
        android:layout_height=&quot;?attr/actionBarSize&quot;
        android:orientation=&quot;horizontal&quot;
        android:showDividers=&quot;end&quot;&gt;

        &lt;Button
            android:text=&quot;Settings&quot;
            android:layout_width=&quot;0dp&quot;
            android:layout_height=&quot;?attr/actionBarSize&quot;
            android:id=&quot;@+id/buttonDNF&quot;
            android:layout_gravity=&quot;start&quot;
            android:layout_weight=&quot;1&quot;
            android:background=&quot;@color/colorPrimary&quot;/&gt;

        &lt;Button
            android:text=&quot;Session&quot;
            android:layout_width=&quot;0dp&quot;
            android:layout_height=&quot;?attr/actionBarSize&quot;
            android:id=&quot;@+id/buttonToSession&quot;
            android:layout_gravity=&quot;end&quot;
            android:layout_weight=&quot;1&quot;
            android:background=&quot;@color/colorPrimary&quot;/&gt;

    &lt;/LinearLayout&gt;
    &lt;/android.support.v7.widget.Toolbar&gt;
&lt;/android.support.design.widget.AppBarLayout&gt;

&lt;TextView
    android:text=&quot;Scramble&quot;
    android:layout_width=&quot;fill_parent&quot;
    android:layout_height=&quot;350dp&quot;
    android:textAlignment=&quot;center&quot;
    android:id=&quot;@+id/textViewScramble&quot;
    android:textSize=&quot;30sp&quot;
    android:textColor=&quot;@color/colorText&quot;
    android:gravity=&quot;center&quot;
    android:layout_alignParentTop=&quot;true&quot;
    android:layout_alignParentStart=&quot;true&quot;
    android:layout_marginTop=&quot;75dp&quot;
    android:layout_above=&quot;@+id/textViewTimer&quot; /&gt;

&lt;TextView
    android:text=&quot;0&quot;
    android:layout_width=&quot;fill_parent&quot;
    android:layout_height=&quot;100dp&quot;
    android:textSize=&quot;90sp&quot;
    android:textColor=&quot;@color/colorText&quot;
    android:textAlignment=&quot;center&quot;
    android:textStyle=&quot;bold&quot;
    android:layout_centerVertical=&quot;true&quot;
    android:layout_centerHorizontal=&quot;true&quot;
    android:id=&quot;@+id/textViewTimer&quot; /&gt;

&lt;android.support.v7.widget.Toolbar
    android:id=&quot;@+id/toolbarDown&quot;
    android:layout_width=&quot;match_parent&quot;
    android:layout_height=&quot;?attr/actionBarSize&quot;
    android:background=&quot;?attr/colorPrimary&quot;
    android:elevation=&quot;4dp&quot;
    android:theme=&quot;@style/ThemeOverlay.AppCompat.ActionBar&quot;
    android:layout_gravity=&quot;bottom&quot;
    android:layout_alignParentBottom=&quot;true&quot;
    android:layout_alignParentStart=&quot;true&quot;&gt;

    &lt;LinearLayout
        android:layout_width=&quot;fill_parent&quot;
        android:layout_height=&quot;?attr/actionBarSize&quot;
        android:orientation=&quot;horizontal&quot;
        android:showDividers=&quot;end&quot;
        android:layout_alignParentBottom=&quot;true&quot;
        android:layout_centerHorizontal=&quot;true&quot;&gt;

        &lt;Button
            android:text=&quot;text&quot;
            android:layout_width=&quot;0dp&quot;
            android:layout_height=&quot;?attr/actionBarSize&quot;
            android:id=&quot;@+id/buttonDraw&quot;
            android:layout_gravity=&quot;start&quot;
            android:layout_weight=&quot;1&quot;
            android:background=&quot;@color/colorPrimary&quot;/&gt;

        &lt;Button
            android:text=&quot;text&quot;
            android:layout_width=&quot;0dp&quot;
            android:layout_height=&quot;?attr/actionBarSize&quot;
            android:id=&quot;@+id/buttonChoosePuzzle&quot;
            android:layout_gravity=&quot;end&quot;
            android:layout_weight=&quot;1&quot;
            android:background=&quot;@color/colorPrimary&quot;/&gt;

    &lt;/LinearLayout&gt;
&lt;/android.support.v7.widget.Toolbar&gt;
</code></pre>

<p>Also, it gives me another error: Can't resolve symbol &quot;R&quot;.</p>