0

我尝试使用 Game Maker: Studio 创建一个 Android 应用程序,但我不断收到以下错误:

release:

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] Found 1 AIDL files.
     [aidl] Compiling 1 AIDL files.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [aapt] C:\Users\Carl\AppData\Local\Temp\gm_ttt_59755\gm_ttt_2511\res\values\strings.xml:29: error: Found text " ${YYAndroidStringValues}
     [aapt] " where item tag is expected

BUILD FAILED
C:\Users\Carl\Documents\Programs\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:653: The following error occurred while executing this line:
C:\Users\Carl\Documents\Programs\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:698: null returned: 1

我有最新版本的 Android APK。第 698 行唯一的内容是proguardFile="${out.absolute.dir}/proguard.txt">(这是我在计算机上根本找不到的文件)。
有谁知道这个问题的解决方案?

提前致谢。

4

1 回答 1

0

我在这里有同样的问题。

问题出在 AndroidManifest.xml 文件中。做这个测试:

  1. 打开你的 AndroidManifest.xml
  2. 粘贴上面的代码。这是一个干净有效的 Android Manifest 文件。

    <?xml version='1.0' encoding='utf-8'?>
    <manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="1.0.0" android:windowSoftInputMode="adjustPan" package="helloWorld" xmlns:android="http://schemas.android.com/apk/res/android">
        <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
        <uses-permission android:name="android.permission.INTERNET" />
        <application android:debuggable="true" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">
            <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:name="HelloWorld" android:theme="@android:style/Theme.Black.NoTitleBar">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application>
        <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />
    </manifest>
    
  3. 并将 "package="helloWorld" 更改为您的包的名称。

尝试构建。如果编译成功,说明你的AndroidManifest有无效指令,需要一一验证。

就我而言,我发现了android:theme="@android:style/Theme.Holo.White.NoTitleBar"指令中的错误。我改为android:theme="@android:style/Theme.Black.NoTitleBar"并且它有效。

于 2014-03-09T02:11:22.787 回答