============問題描述============
我知道配置app圖標的做法是在
manifest.xml中的
<application android:allowBackup="true" android:icon="@drawable/icons" android:label="@string/app_name" android:theme="@style/AppTheme" >
android:icon="@drawable/icons"
這里改成相應的圖片就可以了。。
但是今天遇到一個問題,就是我創建了一個工程,按照上述步驟修改了,
結果進入程序之后的圖標確實修改了,但是桌面上的圖標仍然是原來的,沒有變化。。。
我又找了一份原來的可運行的工程,把其manifest.xml配置文件拷貝出來,貼到新的工程里面,圖標就改變了。。。
很崩潰,這什么原因。。
我每次都clean的,並且真機上會卸載重裝的。。
我的配置文件如下,程序中的圖標已經修改,但是桌面上圖標沒有變化
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.lxl.testapp" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17" /> <application android:icon="@drawable/showicon" android:label="@string/app_name" android:theme="@android:style/Theme.Light.NoTitleBar" > <activity android:name=".MainActivity" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>
============解決方案1============
卸載重載加重啟手機。
有時候是這樣的。
你可以找一台沒裝過的手機試試。
不過,如果application中的icon變了,那桌面圖標一定是變了。
============解決方案2============
把工程里的bin目錄刪除,然后再clean
============解決方案3============

============解決方案4============


