Android Studio - 构建 APK 时出现多个错误

Android Studio - multiple errors when building APK

当我尝试在 Android Studio 中构建签名的 Android 包 (".apk") 时,它显示:

Error:(14, 25) No resource found that matches the given name (at 'label' with value '@string/Midgar-Flower-Girl').

我也收到此错误消息:

Error:Execution failed for task ':app:processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/gregoryopera/Android/Sdk/build-tools/23.0.1/aapt'' finished with non-zero exit value 1

这是我的清单 (release/AndroidManifest.xml),如 Android Studio 所示:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="gregoryopera.wmwatch.midgarflowergirl"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="9"
        android:targetSdkVersion="15" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/Midgar-Flower-Girl" >
        <meta-data
            android:name="watchmaker.watch"
            android:value="1" />
    </application>

</manifest>

这是什么问题,我该如何解决这个问题?

如有任何帮助,我们将不胜感激...

错误出在您的一个资源文件中,因为您指的是 @string/Midgar-Flower-Girl 的字符串 Midgar-Flower-Girl 但它不存在。再次检查您的字符串文件。

Error:(14, 25) No resource found that matches the given name (at 'label' with value '@string/Midgar-Flower-Girl').

这意味着 Android Studio 在您的 res/values/strings.xml 文件夹中找不到 @string/Midgar-Flower-Girl

and how can I correct this issue?

确保在您的 res/values/strings.xml 中有一个名为 Midgar-Flower-Girlstring,如果有,也许最好的解决方案是创建一个