由网友(南城荒凉北城伤)分享简介:输入图像的描述在这里我是新来的机器人。我刚刚创建的机器人工作室的项目,并有问题,在其的manifest.xml 。该错误是在enter image description hereI am new to android. I just created a project in android studio and...
输入图像的描述在这里我是新来的机器人。我刚刚创建的机器人工作室的项目,并有问题,在其的manifest.xml
。该错误是在
enter image description hereI am new to android. I just created a project in android studio and having problem in its manifest.xml
. The error is in
android:icon="@mipmap/ic_launcher
这是不能够解决这个符号。 我对Android的工作室1.2.11
it is not able to resolve this symbol. I am on android studio 1.2.11
推荐答案
替换
android:icon="@mipmap/ic_launcher
与
android:icon="@drawable/ic_launcher"
也就是说,你的表现应该像
That is, your manifest should look like
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.org.yourpackage" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".YourStartingActivity"
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>
更新
尝试,
Go to File > Invalidate Caches / Restart and Invalidate and Restart
在Android的工作室。
in Android Studio.
相关推荐
最新文章