Fail to package Google VR cardboard and sign it

I have tried to package my Cardboard Project and then try to upload to google play but it only package when I don’t sign it.
I have followed the specific guide https://docs.unrealengine.com/latest/INT/Platforms/GoogleVR/QuickStart/index.html
but it doesn’t work with that specific NDK, SDK, apache, JAVA and android-21 in both (sdk and ndk).

I have my own firm (.keystore) in the correct folder and I have done a signed project succesful but when I change to VR It doesn’t work.

I am a little desperated because I have tried everything (change to newest versión of NDK, java…) and even trying solutions of other posts but it does not work for me.

I include my log file when I try to package it.link text

I hope someone could help me because I think that the error (D:\NVPACK\android-sdk-windows\tools\ant\build.xml:871) is the guilty but I don’t find anything about it in google or the forum.

Hi,

I think this is what is stopping your build:
Program.Main: ERROR: AutomationTool terminated with exception: System.IO.FileNotFoundException: No se pudo encontrar el archivo ‘E:\UnrealProjects\PruebaVR2\Intermediate/Android/APK/bin/PruebaVR2-release.apk’.

Your folder path seems incorrect, especially the slashes in your ‘Intermediate’ folder path changes from back slash to front slash.

Thanks

But I think that it is generated automatically by the program because it is a temporary folder, isn’t it? It is curious that if I compile it without signing it, it works. So I think that the problem is related with other thing because I am not able to generate that file in that path or what is generating this file or how?

Thanks by the response.

You are right, it is generated automatically. This is not really an issue. If signing and building is causing it, then I suspect proguard is causing it. Maybe the proguard is obfuscation is enabled and it is not able to read some class names ?

Thanks

When you refer to proguard is “unreal proguard” or windows, because I have desactivated firewall and security of windows and when I compile again It does no work.
What I have done is start new project without plug in Google VR activate and with options of sign, “full rebuild” and “for distribution” activated; and It works perfectly. The build is correct.
But when I activate google VR plugin, restart and even deleting folders (intermediate and saved as some post recommend) the build does not work. Logically I activate some option of VR (look the images I atach).

I continue doing tests changing some parameters step by step and seeing if one of them is the guilty of doesn’t compile with sign.

Thanks a lot for the help.

proguard is the culprit and you can update it. More info here: https://answers.unrealengine.com/questions/505397/trouble-packaging-google-vr-project-for-android-fo.html

Yeah thank you very much. Finally it worked installing SDK from Unreal folder.