在AndroidManifest.xml中 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hh.practice"> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" 设置显示图标 android:label="@string/app_name " 设置app显示名称:practice android:roundIcon="@drawable/ic_launcher" 设置圆形显示图标 android:supportsRtl="true" android:theme="@style/Theme.Chaper3"> <activity android:name=".MainActivity" android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>