Question: I followed come tutorials about building my apk file.
I can generate the debug apk file, but not the release one.

But, when I try to generate a signed apk, i get the following error message:

> 
> Error:(53, 19) No resource found that matches the given name (at
>  'menu' with value '@menu/activity\_main\_drawer').
> 
> 
> Error:Execution failed for task ':app:processReleaseResources'.
> 
> 
> 
> > 
> > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command
> >  'C:\Users\Diego\AppData\Local\Android\sdk\build-tools\23.0.3\aapt.exe''
> >  finished with non-zero exit value 1
> > 
> > 
> > 
> 
> 
> 

I believe there is nothing wrong with my activity\_main\_drawer.xml file:

```
<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <group android:checkableBehavior="single">
        <item
            android:id="@+id/nav_distance"
            android:icon="@android:drawable/ic_menu_directions"
            android:title="Distance Threshold" />
        <item
            android:id="@+id/nav_clear_map"
            android:icon="@android:drawable/ic_menu_delete"
            android:title="Clear Map" />
    </group>
</menu>

```

Here my folder structure: 

[![enter image description here](https://i.stack.imgur.com/dQbIC.png)](https://i.stack.imgur.com/dQbIC.png)

Folder structure with res folder on detail:

[![enter image description here](https://i.stack.imgur.com/GrCM6.png)](https://i.stack.imgur.com/GrCM6.png)

Could you guys help me how to search for a solution?

Thank you

Answer: 
Switch from Android view to Project view. Navigate to 

> 
> app --> src --> debug --> res --> menu
> 
> 
> 

. Move your activity\_main\_drawer.xml file from this location to 

> 
> app --> src --> main --> res --> menu
> 
> 
> 

.

In your current setup you have your resource files setup for debug build and not common build. Anything you move to "main" will be shared by all the builds
```
release {
            lintOptions {
                checkReleaseBuilds false
                disable 'MissingTranslation'
            }
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }

```