Tag Archives: Unity

Summary of some mistakes in the development of unity ar

1. Vuforia initialization failed

error:

Vuforia initialization failed
UnityEngine.Debug:LogError(Object)
Vuforia.VuforiaAbstractBehaviour:Start()

Vuforia initialization failed:
UnityEngine. Debug: LogError (Object)
Vuforia. DefaultInitializationErrorHandler: SetErrorCode (InitError) (ats AR/Assets/Vuforia/Scripts/DefaultInitializationErrorHandler.cs:82)
Vuforia.DefaultInitializationErrorHandler:OnVuforiaInitializationError(InitError) (at AR/Assets/Vuforia/Scripts/DefaultInitializationErrorHandler.cs:156)
Vuforia.VuforiaAbstractBehaviour:Start()

due to the App License Key filling error, to vuforia official website to apply for the correct Key filling in.

2.

Failed to import package with error: couldn’t decompress package

when downloading Karting Microgame, in addition to the problem, import will report an error
correction method:
find the ~/Library/Unity/Asset store-5. X folder
in the computer delete the corresponding file
, then open Unity, after a new project, directly from the project into the Asset Store, re-download and import, prompt that the package is missing, according to the prompt installation, import success

fail to start Unity Package Manager

fail to start Unity Package Manager,

my environment is Unity 2018.2.3f1 + Win10

solution:

1. Set the value of environment variable UNITY_NOPROXY to localhost,127.0.0.1

quickly set CMD command: setx UNITY_NOPROXY localhost,127.0.0.1

2, find C:\Windows\System32\drivers\etc\hosts file, remove the comment symbol before “127.0.0.1 localhost” and save.

3, close the system firewall, close the system firewall, close the system firewall…

4, close antivirus software, eliminate interference…

unity 3D:Virtual Reality SDK Oculus failed to initialize.

problem description:

unity3D has successfully connected to the oculus helmet, and can carry out front and back movement and rotation operations in the u3D compiler, but an error has been reported in the unity console, as shown in the figure below,

Virtual Reality SDK oculus failed to initialize.

  1. new project. No error will be reported after creating a new project, but the helmet is still not shown, and the same error will be opened again after closing the project.
  2. reimport oculus package, https://stackoverflow.com/questions/58744920/virtual-reality-sdk-oculus-failed-to-initialize said doesn ‘t work. I didn’t try, I didn’t know
  3. is looking for… I update the
    — — — — — — — — — —
    update, this equipment has been abandoned, no display of helmet should be separately display did not set up in a computer.

XR: OpenVR Error! OpenVR failed initialization with error code VRInitError_Init_PathRegistryNotFound

XR: OpenVR Error! OpenVR failed initialization with error code VRInitError_Init_PathRegistryNotFound

problem description

when I was running the scene in Unity, the following error occurred: ‘VR: OpenVR error! OpenVR initialization failed, error code VRInitError_Init_PathRegistryNotFound: “Installation path (110) cannot be found!”

problem cause

MRTK tools were used in the

project, but

was not introduced in the unity scenario

solution

[unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity

Unity version from 2019.2.8 to 2019.3.14, then pack android package, smoothly out of the package, but run flash back.
the logcat, error Java lang. RuntimeException: Unable to instantiate the activity ComponentInfo {the package name/com. Unity3d. Player. The MainActivity} : Java. Lang. ClassNotFoundException: Didn ‘t find the class “com. Unity3d. Player. MainActivity” on the path: DexPathList [[zip file “/ data/app/author/base package name – 1. The apk”], nativeLibraryDirectories = [/ data/app/lib// the author package name – 1 arm,/vendor/lib,/system/lib]]
the at android. The app. ActivityThread. PerformLaunchActivity ActivityThread. Java: (2238)
to find the reasons for half a day, many of them said android studio setting of instant run option to cancel. But my apk is straight out of unity

Reason



prefix the package name with the name of the startup item in the androidmanifest.xml.

I wrote a plug-in with the same package name as the Unity project, where MainActivity is defined (inherited from Unity playeractivity).

is able to get out of the package and run smoothly in 2019.2.8, using the Analyze APK of Android Studio, it was found that it has automatically added the content before MainActivity according to the package name set in Unity3D.

>

>

>
>