Reputation: 13
I am currently having multiple errors in the code when I am trying to compile the code and I can't work out where I have gone wrong.
The errors I'm getting are in:
C:\Users\Jamie\AndroidStudioProjects\lifeWithASD\app\build\intermediates\manifests\
full\debug\AndroidManifest.xml
Error:(14, 24) No resource found that matches the given name
(at 'label' with value '@string/app_name').
Error:(18, 28) No resource found that matches the given name
(at 'label' with value '@string/app_name').
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:
Process 'command 'C:\Users\Jamie\AppData\Local\Android\sdk3\build-tools\22.0.1\aapt.exe''
finished with non-zero exit value 1
I am not sure why I would be getting these errors on compile as I don't know what the @string/app name
is referring to in the code.
Upvotes: 0
Views: 523
Reputation: 300
So if you open your AndroidManifest.xml
, from the opening at line 14, and the close at line 24, you need to make sure that you have a property called android:label="@string/app_name"
if you do have that, then you need to open strings.xml
inside of AppPath/res/values
and create a String resource called app_name.
The second part of the error is the same issue.
To add a string into the xml file:
<string name="app_name">YourApplicationNameHere</string>
Upvotes: 2