APK Validation? — Oculus
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

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

Comments

  • stevehinanstevehinan Posts: 115
    Art3mis
    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.

  • andy.speirs.969andy.speirs.969 Posts: 19
    NerveGear
    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.


  • stevehinanstevehinan Posts: 115
    Art3mis
    edited March 22
    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>
  • andy.speirs.969andy.speirs.969 Posts: 19
    NerveGear
    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
  • stevehinanstevehinan Posts: 115
    Art3mis
    The only other APK signing solutions I know of are in the following thread:

  • andy.speirs.969andy.speirs.969 Posts: 19
    NerveGear
    hi steve, got it solved, needed to generate new key store, 
Sign In or Register to comment.