UnityEngine._AndroidJNIHelper.GetFieldID not found?

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

2 Likes

Did you find any solution because i am facing same problem

2 Likes

yes

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

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?

Same thing happens with me. Im trying to print a toast message. Nothing is visible

same here, not playing any ad in devices

i am facing the same problem too

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)

i have same error

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

Facing Same Issue. Hope unity will solve it soon

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.

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