Search Unity

UnityEngine._AndroidJNIHelper.GetFieldID not found ?

Discussion in 'Android' started by Deleted User, Dec 17, 2019.

  1. Deleted User

    Deleted User

    Guest

    everything works fine until i import facebook audiance network sdk

    then when I play the scene, it gives following error

    Exception: Field currentActivity or type signature not found
    UnityEngine._AndroidJNIHelper.GetFieldID (System.IntPtr jclass, System.String fieldName, System.String signature, System.Boolean isStatic) (at C:/buildslave/unity/build/Modules/AndroidJNI/AndroidJava.cs:1445)
    UnityEngine.AndroidJNIHelper.GetFieldID (System.IntPtr javaClass, System.String fieldName, System.String signature, System.Boolean isStatic) (at C:/buildslave/unity/build/Modules/AndroidJNI/AndroidJNI.bindings.cs:79)
    UnityEngine._AndroidJNIHelper.GetFieldID[ReturnType] (System.IntPtr jclass, System.String fieldName, System.Boolean isStatic) (at C:/buildslave/unity/build/Modules/AndroidJNI/AndroidJava.cs:1358)
    UnityEngine.AndroidJNIHelper.GetFieldID[FieldType] (System.IntPtr jclass, System.String fieldName, System.Boolean isStatic) (at C:/buildslave/unity/build/Modules/AndroidJNI/AndroidJNI.bindings.cs:172)
    UnityEngine.AndroidJavaObject._GetStatic[FieldType] (System.String fieldName) (at C:/buildslave/unity/build/Modules/AndroidJNI/AndroidJava.cs:663)
    UnityEngine.AndroidJavaObject.GetStatic[FieldType] (System.String fieldName) (at C:/buildslave/unity/build/Modules/AndroidJNI/AndroidJava.cs:274)
    AudienceNetwork.AudienceNetworkAds.IsInitialized () (at Assets/AudienceNetwork/Library/AudienceNetworkAds.cs:33)
    AudienceNetwork.AudienceNetworkAds.Initialize () (at Assets/AudienceNetwork/Library/AudienceNetworkAds.cs:15)
    AdViewScene.Awake () (at Assets/AudienceNetwork/Scenes/Banner/AdViewScene.cs:26)



    cant find this specific error anywhere so cant find its solution.
    thanks in advance
     
    bekchoi and AqiChatha314 like this.
  2. AqiChatha314

    AqiChatha314

    Joined:
    Jul 16, 2018
    Posts:
    1
    Did you find any solution because i am facing same problem
     
    Deleted User and bekchoi like this.
  3. Deleted User

    Deleted User

    Guest

    yes

    just build the project. error is only shown in console, but works just fine in the phone
     
  4. ddadkhah

    ddadkhah

    Joined:
    Nov 6, 2017
    Posts:
    59
    My teammate has the same error in his Editor. But I don't have this error in my Unity in the same project we are working on.
    We are using google admob. The game will show a blank screen in some mobile phones and just background music is playing.
    Does any one has any solution?
     
  5. adityaspt

    adityaspt

    Joined:
    Mar 22, 2020
    Posts:
    6
    Same thing happens with me. Im trying to print a toast message. Nothing is visible
     
  6. sudunity12

    sudunity12

    Joined:
    Feb 10, 2018
    Posts:
    14
    same here, not playing any ad in devices
     
  7. nickizerr123

    nickizerr123

    Joined:
    Jul 1, 2020
    Posts:
    1
    i am facing the same problem too
     
  8. worldofvrgmbh

    worldofvrgmbh

    Joined:
    Jan 27, 2014
    Posts:
    3
    Hi, we have the same errors, not about Facebook sdk but while using a custom Android plugin...
    Its not working in android builts either. Does anyone have a solution?

    Exception: Field currentActivity or type signature not found
    UnityEngine._AndroidJNIHelper.GetFieldID (System.IntPtr jclass, System.String fieldName, System.String signature, System.Boolean isStatic) (at /Users/builduser/buildslave/unity/build/Modules/AndroidJNI/AndroidJava.cs:1446)
    UnityEngine.AndroidJNIHelper.GetFieldID (System.IntPtr javaClass, System.String fieldName, System.String signature, System.Boolean isStatic) (at /Users/builduser/buildslave/unity/build/Modules/AndroidJNI/AndroidJNI.bindings.cs:79)
    UnityEngine._AndroidJNIHelper.GetFieldID[ReturnType] (System.IntPtr jclass, System.String fieldName, System.Boolean isStatic) (at /Users/builduser/buildslave/unity/build/Modules/AndroidJNI/AndroidJava.cs:1359)
    UnityEngine.AndroidJNIHelper.GetFieldID[FieldType] (System.IntPtr jclass, System.String fieldName, System.Boolean isStatic) (at /Users/builduser/buildslave/unity/build/Modules/AndroidJNI/AndroidJNI.bindings.cs:172)
    UnityEngine.AndroidJavaObject._GetStatic[FieldType] (System.String fieldName) (at /Users/builduser/buildslave/unity/build/Modules/AndroidJNI/AndroidJava.cs:663)
    UnityEngine.AndroidJavaObject.GetStatic[FieldType] (System.String fieldName) (at /Users/builduser/buildslave/unity/build/Modules/AndroidJNI/AndroidJava.cs:274)
     
  9. dergopinath777

    dergopinath777

    Joined:
    Sep 16, 2020
    Posts:
    3
    i have same error
     
  10. GamersCamp

    GamersCamp

    Joined:
    Sep 17, 2020
    Posts:
    1
    Exception: Field currentActivity or type signature not found
    UnityEngine._AndroidJNIHelper.GetFieldID (System.IntPtr jclass, System.String fieldName, System.String signature, System.Boolean isStatic)

    i got these error in editor in mobile crashing these because of multiple sdk i have to use firebase sdk auth, database, adMob, and google sign in after i install these sdk's i got conflict and some error regarding to external dependency manager and android resolver i solved some error by their doc but still many is coming unity or google should have to give proper sdk when install multiple google sdk same thing is instaling again and again or give something like proper doc
     
  11. unity_17-22411-043

    unity_17-22411-043

    Joined:
    Jul 15, 2021
    Posts:
    1
    Facing Same Issue. Hope unity will solve it soon
     
  12. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    835
    If the problem is caused by importing 3rd party SDKs, then you should report it to SDK creators. If the issue is reproducible without 3rd party SDKs, then please report a bug https://unity3d.com/unity/qa/bug-reporting
    If you will end up reporting a bug, after you do that, please write the bug report number here as well.
     
  13. asadali5021357

    asadali5021357

    Joined:
    Nov 21, 2016
    Posts:
    1
    was so dump ..

    The problem is that i was trying to test the project in the editor ..and since that library is a different architecture (ARM or MIPS usually) windows will not understand it so he cant access it .

    The projec works fine like expected in android device