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 マニフェスト ファイルです。

    <?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 には無効な命令が含まれているため、1 つずつ検証する必要があります。

私の場合、android:theme="@android:style/Theme.Holo.White.NoTitleBar"命令にエラーが見つかりました。私はに変更しandroid:theme="@android:style/Theme.Black.NoTitleBar"、それは動作します。

于 2014-03-09T02:11:22.787 に答える