Java Android Studio生成错误

Java Android Studio生成错误,java,android,build,sdk,Java,Android,Build,Sdk,首先,这是我的第一个应用程序,也是第一次使用Android Studio,所以我希望这只是一件我还不明白的小事 这是我的错误信息 AGPBI: {"kind":"ERROR","text":"No resource found that matches the given name (at \u0027icon\u0027 with value \u0027@mipmap/ic_launcher\u0027).","sourcePath":"C:\\Users\\Matt\\AndroidStu

首先,这是我的第一个应用程序,也是第一次使用Android Studio,所以我希望这只是一件我还不明白的小事

这是我的错误信息

AGPBI: {"kind":"ERROR","text":"No resource found that matches the given name (at \u0027icon\u0027 with value \u0027@mipmap/ic_launcher\u0027).","sourcePath":"C:\\Users\\Matt\\AndroidStudioProjects\\FirstApp\\app\\build\\intermediates\\manifests\\full\\debug\\AndroidManifest.xml","position":{"startLine":13,"startColumn":23,"startOffset":385,"endColumn":42,"endOffset":404},"original":""}


FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Matt\AppData\Local\Android\sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1
这是清单xml上的代码:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.matt.firstapp" >

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        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>

第7行显示以下错误消息; 无法解析符号“@mipmap/ic_launcher”小于。。。(Ctrl+F1) 验证Android XML文件内的资源引用

我已经安装了android 21.1.2:


谢谢你的帮助

Unicode转义符号
\u0027
表示引号字符。因此,从错误消息来看,您的AndroidManifest.xml中似乎有类似于
'icon'='@mipmap/ic_launcher'
的东西,我猜它应该更像
android:icon=“@mipmap/ic_launcher”

如果你能发布你的AndroidManfiest.xml的内容肯定会更容易回答。这是一行;android:icon=“@mipmap/ic_-launcher”无法解析符号“@mipmap/ic_-launcher”更少。。。(Ctrl+F1)验证Android XML文件YUP中的资源引用。应参考“@drawable/”@Matthew在
app/src/main/res
下,您是否有一组文件夹
mipmap-mdpi
mipmap-hdpi
等。。。?其中至少有一个应该包含
ic_launcher.png
文件。