Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity Distribution Portal - Packing Failed - Unable to compile resources

Discussion in 'Android' started by ZenithGames, Jul 31, 2019.

  1. ZenithGames

    ZenithGames

    Joined:
    Mar 26, 2017
    Posts:
    11
    I'm trying to push the app to ONE store and Catappult.
    I have verified accounts in their stores. I've also made sure that IAP works with UDP etc.
    Every time I try to repack & publish I get this error:

    Code (CSharp):
    1. Packing Failed: packFailed
    2. Unable to compile resources. Please make sure your AndroidManifest.xml is correct or contact support.
    Here's a screenshot:
    upload_2019-7-31_12-38-26.png


    What's going on here? How do I know what went wrong?
    It happens on all of the stores.

    Here's the AndroidManifest.xml before packing (in the project). It works very well on Google Play store.

    Code (CSharp):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="XXX.XXX.XXX" android:versionCode="1" android:versionName="1.0">
    3.   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    4.   <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    5.   <uses-permission android:name="android.permission.INTERNET" />
    6.   <application android:label="@string/app_name" android:icon="@drawable/app_icon" android:theme="@style/UnityThemeSelector">
    7.  
    8.     <activity android:name="com.unity3d.player.UnityPlayerActivity" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
    9.       <intent-filter>
    10.         <action android:name="android.intent.action.MAIN" />
    11.         <category android:name="android.intent.category.LAUNCHER" />
    12.       </intent-filter>
    13.       <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    14.     </activity>
    15.  
    16.     <receiver android:name="com.appsflyer.SingleInstallBroadcastReceiver" android:exported="true">
    17.       <intent-filter>
    18.         <action android:name="com.android.vending.INSTALL_REFERRER" />
    19.       </intent-filter>
    20.     </receiver>
    21.  
    22.     <service android:name="com.google.firebase.messaging.MessageForwardingService" android:exported="false" />
    23.     <activity android:name="com.facebook.unity.FBUnityLoginActivity" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
    24.     <activity android:name="com.facebook.unity.FBUnityDialogsActivity" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
    25.     <activity android:name="com.facebook.unity.FBUnityAppLinkActivity" android:exported="true" />
    26.     <activity android:name="com.facebook.unity.FBUnityDeepLinkingActivity" android:exported="true" />
    27.     <activity android:name="com.facebook.unity.FBUnityGameRequestActivity" />
    28.     <activity android:name="com.facebook.unity.FBUnityCreateGameGroupActivity" />
    29.     <activity android:name="com.facebook.unity.FBUnityJoinGameGroupActivity" />
    30.     <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="fb2373994526160531" />
    31.     <meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="true" />
    32.     <meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" android:value="true" />
    33.     <provider android:name="com.facebook.FacebookContentProvider" android:authorities="com.facebook.app.XXXXXXXXXXXXXX" android:exported="true" />
    34.     <activity android:name="com.facebook.unity.AppInviteDialogActivity" />
    35.  
    36.   </application>
    37. </manifest>
     
  2. goyadb

    goyadb

    Joined:
    Mar 11, 2016
    Posts:
    8
    I've same problem when I update my app. But error message was very simple. So I couldn't resolve this.
     
  3. ZenithGames

    ZenithGames

    Joined:
    Mar 26, 2017
    Posts:
    11
    I wrote to the Unity's UDP customer support.
    They're looking into that.
     
  4. thiagocoli

    thiagocoli

    Joined:
    Sep 11, 2018
    Posts:
    2
    Any news about this error?
     
  5. thiagocoli

    thiagocoli

    Joined:
    Sep 11, 2018
    Posts:
    2
    Any news about this error?
     
  6. araz01

    araz01

    Joined:
    Aug 2, 2016
    Posts:
    53
    any news about this erur?
     
  7. yutingchen_unity

    yutingchen_unity

    Unity Technologies

    Joined:
    Jul 5, 2019
    Posts:
    5
    Hi guys, Unity UDP has been updated several times during the past half year. The issue has been fixed, you can retry on udp. And if still has repack errors, please give me you clientId. I will check it.
     
  8. araz01

    araz01

    Joined:
    Aug 2, 2016
    Posts:
    53
    i changed the iAp from googleplay to universal for UDP, and wurked!

    in menus at tops, of editor