1

i've imported my cordova 3.0 project into Android Studio, when i sync build.gradle file with my project, i have this error code 1:

Error:Execution failed for task ':processDebugResources'.

the error output is about AndroidManifest.xml file:

Error:(38, 23) No resource found that matches the given name (at 'icon' with value '@drawable/icon').
Error:(39, 24) No resource found that matches the given name (at 'label' with value '@string/app_name').
Error:(43, 28) No resource found that matches the given name (at 'label' with value '@string/activity_name').
Error:(47, 43) No resource found that matches the given name (at 'label' with value '@string/launcher_name').

any idea?

Malakiof
  • 98
  • 6
  • 18
  • The error says that you have no image named icon in your drawable folder,no string named app_name and so on.. – Lal Jan 22 '15 at 16:15
  • yes i know, but the fact is that there is this image in this folder – Malakiof Jan 22 '15 at 16:16
  • Then i think a restart of android studio will fix the issue.. – Lal Jan 22 '15 at 16:17
  • i have the same error after restart android studio :( – Malakiof Jan 22 '15 at 16:23
  • See the answers [here](http://stackoverflow.com/questions/26431676/appcompat-v721-0-0-no-resource-found-that-matches-the-given-name-attr-andro) – Lal Jan 22 '15 at 16:26
  • Do tell me if you have any problems.. – Lal Jan 22 '15 at 16:26
  • i followed the instructions, but still have the same error, even with build clean command – Malakiof Jan 22 '15 at 16:42
  • see if this [link](http://stackoverflow.com/a/17901362/3168859) helps you.. – Lal Jan 22 '15 at 16:43
  • nop, it created a new build folder, but with the same issue. – Malakiof Jan 22 '15 at 16:47
  • Do you know where the "res" folder path is specified? – Malakiof Jan 22 '15 at 16:47
  • sorry..didnt get you???what was that?? – Lal Jan 22 '15 at 16:48
  • i assumed that if the build don't find the files, it because he don't find the "res" folder..? am i right? – Malakiof Jan 22 '15 at 16:49
  • check if you have an entry for the icon in `R.java` – Lal Jan 22 '15 at 17:05
  • yes, there is: public static final class drawable { public static final int icon=0x7f020000; public static final int screen=0x7f020001; } public static final class string { public static final int activity_name=0x7f040002; public static final int app_name=0x7f040000; public static final int launcher_name=0x7f040001; } – Malakiof Jan 22 '15 at 17:09
  • is your image inside some other folders??? – Lal Jan 22 '15 at 17:19
  • check this [link](http://stackoverflow.com/a/21648362/3168859) – Lal Jan 22 '15 at 17:21
  • The image is on other folders like bin/res/drawable... I don't find any menu.xml file in my project, i have a file in res/value/strings.xml and itcontains this: MyAppName @string/app_name @string/launcher_name – Malakiof Jan 22 '15 at 17:48
  • This error taught me how much vital git is. – Ayub Nov 14 '17 at 15:06

0 Answers0