GearVR is not building at all
This is Unity 5.2 in Windows 8.1.
I was building GearVR in Unity 5.1 without any real issue. However this first happened when transferring a project from Unity 4 to Unity 5.2 (which I had installed just before over 5.1).
The build would fail - giving errors - which I thought might be due to project problems. However this ALSO occurs in a completely BLANK project, with only 'Android' set, VR turned on and a cube in a scene - there's nothing in the project that could cause this.
The errors come as the following in the blank project:
http://i.imgur.com/U44cLLA.png
This may or may not be to do with Java? Really I have NO idea.
They declare 'duplicate' files in the APK? As above there are NO assets in this project so it is NOT down to the files I have added (I have added none).
To repost those errors:
-------------
[CAPI] LibOVR module is located at C:\Windows\SYSTEM32\LibOVRRT64_0_6.dll
-------------
Error: Duplicate file(s) in apk: 'C:\PROJECT FILES\VR-Art-Led\TestGearVR5\Temp\StagingArea\android-libraries\ovrplugin\assets'
UnityEditor.HostView:OnGUI()
-------------
CommandInvokationFailure: Failed to build apk. See the Console for details.
C:/Program Files/Java/jdk1.7.0_80\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Fire Panda/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\androidplayer/Tools\sdktools.jar" -
stderr[
Error: Duplicate file(s) in apk: 'C:\PROJECT FILES\VR-Art-Led\TestGearVR5\Temp\StagingArea\android-libraries\ovrplugin\assets'
]
stdout[
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()
-------------
Error building Player: CommandInvokationFailure: Failed to build apk. See the Console for details.
C:/Program Files/Java/jdk1.7.0_80\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Fire Panda/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\androidplayer/Tools\sdktools.jar" -
stderr[
Error: Duplicate file(s) in apk: 'C:\PROJECT FILES\VR-Art-Led\TestGearVR5\Temp\StagingArea\android-libraries\ovrplugin\assets'
]
stdout[
]
-------------
I was building GearVR in Unity 5.1 without any real issue. However this first happened when transferring a project from Unity 4 to Unity 5.2 (which I had installed just before over 5.1).
The build would fail - giving errors - which I thought might be due to project problems. However this ALSO occurs in a completely BLANK project, with only 'Android' set, VR turned on and a cube in a scene - there's nothing in the project that could cause this.
The errors come as the following in the blank project:
http://i.imgur.com/U44cLLA.png
This may or may not be to do with Java? Really I have NO idea.
They declare 'duplicate' files in the APK? As above there are NO assets in this project so it is NOT down to the files I have added (I have added none).
To repost those errors:
-------------
[CAPI] LibOVR module is located at C:\Windows\SYSTEM32\LibOVRRT64_0_6.dll
-------------
Error: Duplicate file(s) in apk: 'C:\PROJECT FILES\VR-Art-Led\TestGearVR5\Temp\StagingArea\android-libraries\ovrplugin\assets'
UnityEditor.HostView:OnGUI()
-------------
CommandInvokationFailure: Failed to build apk. See the Console for details.
C:/Program Files/Java/jdk1.7.0_80\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Fire Panda/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\androidplayer/Tools\sdktools.jar" -
stderr[
Error: Duplicate file(s) in apk: 'C:\PROJECT FILES\VR-Art-Led\TestGearVR5\Temp\StagingArea\android-libraries\ovrplugin\assets'
]
stdout[
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()
-------------
Error building Player: CommandInvokationFailure: Failed to build apk. See the Console for details.
C:/Program Files/Java/jdk1.7.0_80\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Fire Panda/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\androidplayer/Tools\sdktools.jar" -
stderr[
Error: Duplicate file(s) in apk: 'C:\PROJECT FILES\VR-Art-Led\TestGearVR5\Temp\StagingArea\android-libraries\ovrplugin\assets'
]
stdout[
]
-------------
