Search Unity

Question Unity doesn't load Android.Runtime.JNIEnv:AndroidValueManager

Discussion in 'Android' started by Clashman, Jun 22, 2021.

  1. Clashman

    Clashman

    Joined:
    Feb 18, 2019
    Posts:
    53
    Hi !
    I have a little problem. Unity doesn't load Android.Runtime.JNIEnv:AndroidValueManager. I don't kown where this error come from and how to repair it...
    Can you help me ?

    My error logs :
    Code (CSharp):
    1. 2021/06/22 10:09:33.456 5302 5323 Warn   TypeRef ResolutionScope not yet handled (134) for .JniValueManager in image /data/app/com.perform_vr.fitimmersion-AxYvjkyiPv3DPaA-wNwHhw==/base.apk/assets/bin/Data/Managed/Mono.Android.dll
    2. 2021/06/22 10:09:33.467 5302 5323 Error Unity TypeLoadException: Could not load type of field 'Android.Runtime.JNIEnv:AndroidValueManager' (16) due to: Could not resolve type with token 0100008f (from typeref, class/assembly JniValueManager, ) assembly: type:JniValueManager member:(null) signature:<none>
    3. 2021/06/22 10:09:33.467 5302 5323 Error Unity   at FitImmersion.Classes.MainController.ProcessDownload (FitImmersion.Classes.VideoInfo tr, System.Boolean update, System.Int32[] nums) [0x000fa] in <21b3d70927644252b1b0ae8a443a3803>:0
    4. 2021/06/22 10:09:33.467 5302 5323 Error Unity   at FitImmersion.Activities.VideoSelectActivity+<>c__DisplayClass7_0.<UpdateList>b__0 () [0x00011] in <21b3d70927644252b1b0ae8a443a3803>:0
    5. 2021/06/22 10:09:33.467 5302 5323 Error Unity   at UnityEngine.Events.InvokableCall.Invoke () [0x00010] in <fb0ce9ab519b43309a57d555bb8920f7>:0
    6. 2021/06/22 10:09:33.467 5302 5323 Error Unity   at UnityEngine.Events.UnityEvent.Invoke () [0x00022] in <fb0ce9ab519b43309a57d555bb8920f7>:0
    7. 2021/06/22 10:09:33.467 5302 5323 Error Unity   at UnityEngine.UI.Button.Press () [0x0001c] in <adfa9916be9e467097f9456e7e67ce81>:0
    8. 2021/06/22 10:09:33.467 5302 5323 Error Unity   at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00009] in <adfa9916be9e467097f9456e7e67ce81>:0
    9. 2021/06/22 10:09:33.467 5302 5323 Error Unity   at
    10.  
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,732
    Do you have Mono.Android.dll in your project?
    The error suggests that either it is missing or something is wrong with the FitImmersion, which is also some third party thing that you use.
     
  3. Clashman

    Clashman

    Joined:
    Feb 18, 2019
    Posts:
    53
    Yes, I have Mono.Android.dll.
    FitImmersion is the name of the app which I develop.
     
    Last edited: Jun 22, 2021
  4. Clashman

    Clashman

    Joined:
    Feb 18, 2019
    Posts:
    53
    After trying to reimport Mono.Android.dll, I've got this error :
    Unloading broken assembly Assets/Plugins/Mono.Android.dll, this assembly can cause crashes in the runtime.
     
  5. Clashman

    Clashman

    Joined:
    Feb 18, 2019
    Posts:
    53
    Where can I find an unbroken assembly Mono.Android.dll ?