Error when building "No resource found that matches the given name (at 'icon' with value '@drawable/icon')"

I’ve built an Android apk before using Enterprise, but never encountered this error:

MyApp/Android/android/bin/AndroidManifest.xml:35: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon').  

The section of the manifest file that this relates to is this part:

\<application android:name="CoronaApplication" android:icon="@drawable/icon" android:label="My App Name" android:hardwareAccelerated="true" android:largeHeap="true" android:debuggable="true"\>

In my previous project (which I inherited from someone else) when I ran build.sh it would automatically create a folder called “res” in my android folder which contained folders called: 

  • drawable-hdpi
  • drawable-ldpi
  • drawable-mdpi
  • drawable-xhdpi
  • values

It also generated a “gen” folder with a file called “R.java.d” which also referenced these drawable folders and files.

However I can’t find anywhere in the old project that actually made this happen, so I’m not sure why it’s not happening in my new project. I actually copied the build.sh from my old project to the new one so nothing has changed there.

What could I have missed that could be causing this error?

Turns out that the previous project DID have the “res” folder already included, once I’d added it to my new project it fixed the problem.

Sorry guys  :unsure:

Turns out that the previous project DID have the “res” folder already included, once I’d added it to my new project it fixed the problem.

Sorry guys  :unsure: