2012-05-22 51 views
0

我正在使用java爲unity3d插件工作。我不知道爲什麼我突然得到 錯誤:INSTALL_PARSE_FAILED_MANIFEST_ MALFORMED當我試圖安裝在我的Android設備。 我已經使Unity在Unity中構建。任何機構可以告訴我爲什麼我得到錯誤:INSTALL_PARSE_FAILED_MANIFEST_ MALFORMED

我已經熟我的罐子AndroidManifest.xml中

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

    <uses-sdk android:minSdkVersion="7" ></uses-sdk> 
    <application android:label="@string/app_name" > 
     <activity android:name=".TestActivity" 
        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> 

而在Unity3D我的AndroidManifest.xml是

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" android:installLocation="preferExternal" android:versionCode="1" android:versionName="1.0"> 

    <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true"/> 

    <uses-sdk android:minSdkVersion="7"></uses-sdk> 
    <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true"> 

     <activity android:name="com.unity3d.player.UnityPlayerProxyActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 

     <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"> 
     </activity> 

     <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"> 
      <meta-data android:name="android.app.lib_name" android:value="unity" /> 
      <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" /> 
     </activity> 

     <activity android:name="com.unity3d.player.VideoPlayer" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"> 
     </activity> 

     <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"> 
     </activity> 

    </application> 
    <uses-permission android:name="android.permission.INTERNET"/> 
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> 
</manifest> 

回答

0

解決。我不知道爲什麼會出現這個錯誤。但我又寫了AndroidManifest.xml再次手動逐行&突然它開始工作。

但搞不清楚,爲什麼上面的文件沒有工作..

相關問題