I get the error ”Exception: Field SDK_INT or type signature not found“ in Unity

I'm trying to launch my project, but unity gives the error "Exception: Field SDK_INT or type signature not found". What is it and how can I fix it?

Complete error message from Unity console:

Exception: Field SDK_INT or type signature  not found
UnityEngine._AndroidJNIHelper.GetFieldID (System.IntPtr jclass, System.String fieldName, System.String signature, System.Boolean isStatic) (at <25cc22fd49c34daaa956e67f0a66ab9d>:0)
UnityEngine.AndroidJNIHelper.GetFieldID (System.IntPtr javaClass, System.String fieldName, System.String signature, System.Boolean isStatic) (at <25cc22fd49c34daaa956e67f0a66ab9d>:0)
UnityEngine._AndroidJNIHelper.GetFieldID[ReturnType] (System.IntPtr jclass, System.String fieldName, System.Boolean isStatic) (at <25cc22fd49c34daaa956e67f0a66ab9d>:0)
UnityEngine.AndroidJNIHelper.GetFieldID[FieldType] (System.IntPtr jclass, System.String fieldName, System.Boolean isStatic) (at <25cc22fd49c34daaa956e67f0a66ab9d>:0)
UnityEngine.AndroidJavaObject._GetStatic[FieldType] (System.String fieldName) (at <25cc22fd49c34daaa956e67f0a66ab9d>:0)
UnityEngine.AndroidJavaObject.GetStatic[FieldType] (System.String fieldName) (at <25cc22fd49c34daaa956e67f0a66ab9d>:0)
UnityEngine.AdaptivePerformance.Google.Android.GoogleAndroidAdaptivePerformanceSubsystem+GoogleAndroidAdaptivePerformanceSubsystemProvider+NativeApi.GetApiLevel () (at ./Library/PackageCache/com.unity.adaptiveperformance.google.android@4fcdb811ad90/Runtime/Provider/GoogleAndroidAdaptivePerformanceSubsystem.cs:392)
UnityEngine.AdaptivePerformance.Google.Android.GoogleAndroidAdaptivePerformanceSubsystem+GoogleAndroidAdaptivePerformanceSubsystemProvider+NativeApi.IsAvailable () (at ./Library/PackageCache/com.unity.adaptiveperformance.google.android@4fcdb811ad90/Runtime/Provider/GoogleAndroidAdaptivePerformanceSubsystem.cs:401)
UnityEngine.AdaptivePerformance.Google.Android.GoogleAndroidAdaptivePerformanceSubsystem.RegisterDescriptor () (at ./Library/PackageCache/com.unity.adaptiveperformance.google.android@4fcdb811ad90/Runtime/Provider/GoogleAndroidAdaptivePerformanceSubsystem.cs:35)

Here are screenshots of the player settings and external tools:

I contacted Deepseek with this question. He asked me to check if I had the SDK, and I made sure it was installed. He also suggested that I check the path to the SDK folder in the External Tools section, and I confirmed that the path is correct.

Unity Version: 6000.0.41f1 SDK version: 34.0.0 NDK version: 27.2.12479018

Here are my scripts, but I don't think that they're related to the problem:

Upvotes: 1

Views: 30

Answers (1)

Solution:

  • Close Unity Editor.
  • Delete the folder: Assets/Adaptive Performance.
  • Reopen your Unity project. Unity will regenerate the Adaptive Performance files.
  • The exception should disappear.

It helped to me.

Upvotes: 0

Related Questions