Jump to content
 
JustinVive

[NEW] Vive Wave SDK Links (Latest SDK release: August 11, 2020)

Recommended Posts

@Tony PH Lin @JustinViveSame issue as @juanyvos but it's not related to a clean import of the unity package.

After doing a clean import of 3.1.1, by default the following aar libraries are disabled for Android:

  • wvr_client.aar
  • wvr_ime_client.aar
  • wvr_permission_client.aar
  • wvr_resindicator.aar
  • wvr_unity_plugin_2017.aar

This was not the case in 3.0.2, they were all enabled for Android. As a result, when attempting to build and run on the Focus, logcat gives the following errors:

AndroidJavaException: java.lang.ClassNotFoundException: Didn't find class "com/htc/vr/unity/WVRUnityVRActivity$OEMConfigCallback"
Unable to find wvrunity
DllNotFoundException: wvrunity

If the aar libraries are enabled, it fails to merge the AndroidManifest as @juanyvos found. This happens in Unity 2018 LTS as well as Unity 2019

Are the aar libraries supposed to not be included? How does wvrunity get deployed to the apk?

Thank you

 

Share this post


Link to post
Share on other sites

Hi @atonalfreerider,

Thanks for your feedback, and after analysis it seems the aar files are not enabled by default now.

We will enabled the aar files at build time on next release.

Will update more about the short-term action soon.

 

Share this post


Link to post
Share on other sites

@Tony PH Lin there is still a collision between the AndroidManifest and wvr_client for @style/Theme.WaveVR.Black while Gradle is building. What is the best way to resolve this?

CommandInvokationFailure: Gradle build failed. 
C:/Program Files/Unity/Hub/Editor/2019.2.4f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2019.2.4f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleDebug"

stderr[
C:\Users\johnb\Desktop\PRIMITIVE\Temp\gradleOut\src\main\AndroidManifest.xml:4:16-57 Error:
	Attribute application@theme value=(@style/UnityThemeSelector) from AndroidManifest.xml:4:16-57
	is also present at [:wvr_client:] AndroidManifest.xml:15:9-50 value=(@style/Theme.WaveVR.Black).
	Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:4:3-19:17 to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugManifest'.
> Manifest merger failed : Attribute application@theme value=(@style/UnityThemeSelector) from AndroidManifest.xml:4:16-57
  	is also present at [:wvr_client:] AndroidManifest.xml:15:9-50 value=(@style/Theme.WaveVR.Black).
  	Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:4:3-19:17 to override.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s

@Cotta

Share this post


Link to post
Share on other sites

@Corvus @Tony PH Lin as I explained above this is from a clean import. Deleting and re-importing the plugins folder has no effect.

The gradle Android Manifest merger is failing specifically between wvr_client.aar for the attribute 

application@theme=@style/UnityThemeSelector

and the Assets\WaveVR\Platform\AndroidWVR\AndroidManifest.xml

<application android:icon="@drawable/app_icon"
             android:label="@string/app_name"
             android:theme="@style/Theme.WaveVR.Loading"
             android:resizeableActivity="false"
			 tools:replace="android:theme">  <!--You can use your theme here.-->

This is the error from gradle:

Attribute application@theme value=(@style/UnityThemeSelector) from AndroidManifest.xml:4:16-57
	is also present at [:wvr_client:] AndroidManifest.xml:15:9-50 value=(@style/Theme.WaveVR.Black).
	Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:4:3-19:17 to override.

Nothing has been changed since the clean import.

Thank you in advance for your help

@Cotta

Share this post


Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...