Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Error : No resource found that matches the given name (at 'icon' with value '@drawable/icon').

This is my manifest... I'm extremely new to this, just started this morning and have no previous programming experience.

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.asdf" android:versionCode="1" android:versionName="1.0" >  <uses-sdk     android:minSdkVersion="8"     android:targetSdkVersion="19" />   <application     android:allowBackup="true"     android:icon="@drawable/ic_launcher"     android:label="@string/app_name"     android:theme="@style/AppTheme" >  </application> <application android:label="@string/app_name" android:icon="@drawable/icon"> <activity android:name="ExampleActivity"           android:label="@string/app_name">     <intent-filter>         <action android:name="android.intent.action.MAIN" />         <category android:name="android.intent.category.LAUNCHER" />     </intent-filter> </activity> </application>  </manifest> 
like image 802
PositivityRiven Avatar asked May 22 '14 01:05

PositivityRiven


1 Answers

Found this question. I was importing an old project into android studio and got the error.

The issue was eventually answered for me here mipmap drawables for icons

In the manifest it has

<application     android:allowBackup="true"     android:icon="@drawable/ic_launcher" ... 

but @drawable has been superseded by @mipmap so needed changing to:

<application     android:allowBackup="true"     android:icon="@mipmap/ic_launcher" ... 

I put this answer here, as it may become a more common issue.

like image 100
pperrin Avatar answered Oct 05 '22 04:10

pperrin