Forum Discussion

andy_speirs_969's avatar
7 years ago

APK Validation?

hi, when I upload my apk, I get the following errors? 


any suggestions please, is this fixed in the player settings?

thanks, andy

6 Replies

  • I think the AndroidManifest.xml needs an edit to solve this.

    When I create a store APK, I remove from the AndroidManifest.xml:
    <category android:name="android.intent.category.LAUNCHER"/>
    and paste it back in when building to my phone again.

    AndroidManifest.xml is located at UnityProject - Plugins - Android.

  • thanks steve, i did this, I went to tools, remove manifest, and then I created a manifest from the tools menu.

    im now getting the error in the photo attached, any suggestions please? thanks, andy


    I think the AndroidManifest.xml needs an edit to solve this.

    When I create a store APK, I remove from the AndroidManifest.xml:
    <category android:name="android.intent.category.LAUNCHER"/>
    and paste it back in when building to my phone again.

    AndroidManifest.xml is located at UnityProject - Plugins - Android.






  • im now getting the error in the photo attached, any suggestions please? thanks, andy


    Hi @"andy.speirs.969"
    If you are using Unity:
    Build settings - Platform Android - if 'Development Build' is checked, try unchecking that. (I'm guessing here) 

    If that's not the solution, hopefully someone else on the forum will suggest a fix.

    Below is what my AndroidManifest.xml contains, I deleted the 'package' info in-between the " " for my own security.
    You would remove the launcher and adjust android:version name and code values.

    <?xml version="1.0" encoding="utf-8" standalone="no"?>
      package=" "
      android:versionName="1.156"
      android:versionCode="156"
      android:installLocation="auto">
      <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="26" />
      <uses-feature android:glEsVersion="0x00030001" android:required="true" />
      <uses-permission android:name="android.permission.INTERNET" />
      <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
      <application
          android:allowBackup="true"
          android:label="@string/app_name"
      >
      <meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only"/>
            <activity android:configChanges="locale|fontScale|keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
                    android:launchMode="singleTask"
                    android:name="com.unity3d.player.UnityPlayerActivity"
                    android:excludeFromRecents="true"
                    android:screenOrientation="landscape"
                    android:label="@string/app_name"
                    android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
           
                <intent-filter>
                    <action android:name="android.intent.action.MAIN"/>
                    <category android:name="android.intent.category.INFO"/>
                  <category android:name="android.intent.category.LAUNCHER"/>
                </intent-filter>
            </activity>
        </application>
    </manifest>
  • thanks, I managed to fix the manifest error, I now just get this error when it uploads to oculus store, 

    the development build is unchecked

    thanks