2014-02-21 77 views
0

我试图创建一个游戏制造商的Android应用程序:Studio,但我不断收到以下错误:游戏制造商构建Android应用程序未能返回NULL:1

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 

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

在此先感谢。

回答

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. 变“包=” HelloWorld”的,以你的包的名称。

尝试打造。如果构建成功,你AndroidManifest有一些无效的指令,你需要确认一个接一个。

就我而言,我发现了错误android:theme="@android:style/Theme.Holo.White.NoTitleBar"的指导,我改变android:theme="@android:style/Theme.Black.NoTitleBar"和它的作品。