Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
jhhoward's avatar
jhhoward
Start Partner
6 years ago
Solved

APK validation error: GLES not specified validation error

I am having a problem with uploading an APK to a release channel. The full error message is as follows: > GLES version not specified (android:glEsVersion in AndroidManifest.xml). GLES version of 2....
  • jhhoward's avatar
    6 years ago
    OK so after some further investigation, I found that the AndroidManifest.xml that was in Unity's staging area was *not* the same as the one actually bundled in the APK. I used apktool to unpack the APK and found that the 'uses-feature android:glEsVersion' tag was indeed missing from the manifest.

    When I switched the build system from 'Gradle' to 'Internal' in the build settings, this stopped happening.

    I did experience some issues with code signing as you described, as Oculus won't allow V2 or V3 uploads for Go/Gear VR. I have a simple batch file which resigns with the appropriate method:

    "c:\Program Files\Java\jdk1.8.0_131\bin\jarsigner" -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore path/to/my.keystore my-app-name.apk my-app-key-alias