cancel
Showing results for 
Search instead for 
Did you mean: 

APK Validation Failed

makapiatia
Level 3
I keep receiving the same errors when I use the Submission Validator and when I try to build my project in the Oculus Dashboard.

I have located the AndroidManifest.xml file and I know to add android:excludeFromRecents="true" to the <activity> section and to change <category android:name="android.intent.category.LAUNCHER" /> to <category android:name="android.intent.category.INFO" />.

The issue is that a new AndroidManifest.xml file is generated with every .apk build in Unity. I'm not sure how to change the default .xml file produced to reflect the changes that need to be made.

I am also confused about the Android SDK version. I am using SDK version 25, not 9. It is building with the results <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="23" />. 

If anyone knows a way to change the AndroidManifest.xml file before the .apk file builds in Unity, the knowledge would be greatly appreciated!

h02xm51uf7l0.png
3 REPLIES 3

makapiatia
Level 3
New update, by making edits to the AndroidManifest.xml file in the Staging Area and moving it to my Assets/Plugins/Android folder within my project, my .apk built without the SDK version error, I changed it to read <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="23" /> from <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="23" />.

I also added the
 android:excludeFromRecents="true" to the <activity> section and the second error disappeared.

Now I am left with the first error.
y1izefvw4st9.png

My .apk will not build if I change the AndroidManifest.xml file to read 
<category android:name="android.intent.category.INFO" />. I get an error in Unity which reads:g87whkewsdh3.png

This prevents the .apk from building. I am not sure what to do next.

makapiatia
Level 3
Everything is fixed! Instead of selecting Build & Run, I just selected Build since Unity was trying to push the .apk to my phone to be launched immediately. Everything uploaded perfectly! 🙂

zed8_fr
Level 2
Hi Can You explain me how to access the AndroidManifest.xml please ?