unity打包报错:The type name ‘AndroidJavaObject‘ could not be found in the namespace ‘UnityEngine‘.

unity打包报错:The type name ‘AndroidJavaObject’ could not be found in the namespace ‘UnityEngine’. This type has been forwarded to assembly ‘UnityEngine.AndroidJNIModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ Enable the built in package ‘Android JNI’ in the Package Manager window to fix this error.

这个问题太简单了,答案就写在这里,还是没有仔细看清楚。就是上面粗体,以及下图所示。点enable就好了。
unity打包报错:The type name ‘AndroidJavaObject‘ could not be found in the namespace ‘UnityEngine‘._第1张图片
unity打包报错:The type name ‘AndroidJavaObject‘ could not be found in the namespace ‘UnityEngine‘._第2张图片

你可能感兴趣的:(unity,游戏引擎)