Getting an Error
Error is:
NullReferenceException: Object reference not set to an instance of an object GooglePlayServices.PlayServicesResolver.AutoResolve () UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/EditorApplication.c )
this error keeps showing continuously for infinte time (999+) when unity editor start .
There's no way to tell you what it's happening without the code. Double click it when it comes up.
there is also another first error :
System.Xml.XmlException: Document element did not appear. Line 1, position 1. at $$anonymous$$ono.Xml2.XmlTextReader.Read () [0x00000] in :0 at System.Xml.XmlTextReader.Read () [0x00000] in :0 at GooglePlayServices.ResolverVer1_1.LoadAarExplodeCache () [0x00000] in :0 at GooglePlayServices.ResolverVer1_1..cctor () [0x00000] in :0
Answer by Nova-1504 · Nov 21, 2016 at 04:40 PM
One of your components isn't set to a script, audio, material etc. Look through everything and find it.
I checked everything i don't find any kind of this error . But i want to tell you this error starts co$$anonymous$$g when i import fb sdk , ad sdk , googleplayservice , . But i don't know how to resolve it . This error delaying my release date . Please do something .
Answer by ashwanidv100 · Nov 22, 2016 at 02:42 PM
I find another folder that is auto-created in my game folder within Assets\PlayServicesResolver\play-services-resolver_v1.2.2.0.txt
text file written with :
Assets/PlayServicesResolver/Editor/Google.IOSResolver_v1.2.2.0.dll Assets/PlayServicesResolver/Editor/Google.JarResolver_v1.2.2.0.dll Assets/PlayServicesResolver/Editor/Google.VersionHandler_v1.2.2.0.dll
I could not understand anything how it is created .
Why do you not heed advice which you have asked for?
Answer by EpsilonQoppa · Nov 22, 2016 at 03:14 PM
I still don't see code. @ashwanidv100
-Hey, will you help me? -What's the problem? -I'm too ashamed to show you. -Then how am I supposed to help? -I don't know but here's my solution.
COugh Edit cough
Here's your solution, pain and confusion, wonder what provin' only thing doin is help asked abusin' so I alone task producin' that's why whack the subduin'.
The error don't pop up when double clicking on it -And i can't find it - I don't know wheres the error co$$anonymous$$g from .
Hehehe, I'm just giving you a hard time brother. Post your code and we might be able to tell you <3
Now i am getting some warning massages after restarting unity editor for several times , i think that would be helpful for you to tell me what i have to do next :
Assets/Plugins/AdmobAPI/Admob.cs(12,40): warning CS0067: The event`admob.Admob.nativeBannerEventHandler' is never used
Assets/Plugins/AdmobAPI/Admob.cs(11,40): warning CS0067: The event`admob.Admob.rewardedVideoEventHandler' is never used
Assets/Plugins/AdmobAPI/Admob.cs(10,40): warning CS0067: The event`admob.Admob.interstitialEventHandler' is never used
Assets/Plugins/AdmobAPI/Admob.cs(9,40): warning CS0067: The event`admob.Admob.bannerEventHandler' is never used
Errors are : Got 0 achievement instances UnityEngine.Debug:Log(Object) Social$$anonymous$$anager:m_9(IAchievement[]) (at Assets/Assets/Script/Social$$anonymous$$anager.cs:90) UnityEngine.Social:LoadAchievements(Action`1) Social$$anonymous$$anager:LoadAchievements() (at Assets/Assets/Script/Social$$anonymous$$anager.cs:89) Social$$anonymous$$anager: m _8(Boolean) (at Assets/Assets/Script/Social$$anonymous$$anager.cs:73) UnityEngine.SocialPlatforms.Imp
Show$$anonymous$$erboardUI not implemented UnityEngine.Social:Show$$anonymous$$erboardUI() Social$$anonymous$$anager: m__8(Boolean) (at Assets/Assets/Script/Social$$anonymous$$anager.cs:74) UnityEngine.SocialPlatforms.Impl.LocalUser:Authenticate(Action`1) Social$$anonymous$$anager:AuthenticateAndShow$$anonymous$$erboard() (at Assets/Assets/Script/Social$$anonymous$$anager.cs:70) Social$$anonymous$$anager:Show$$anonymous$$erboardUI() (at Assets/Assets/Script/Social$$anonymous$$anager.cs:59) $$anonymous$$erboard:Update() (at Assets/Assets/Script/$$anonymous$$erboard.cs:8)
Codes are :
public static void AuthenticateAndShow$$anonymous$$erboard() {
if(IsAuthenticated) {
return;
}
if(Application.platform == RuntimePlatform.Android) {
PlayGamesPlatform.Activate();
}
Social.localUser.Authenticate((bool success) => {
if(success) {
PlayerPrefs.SetInt("use_game_services", 1);
LoadAchievements();
Social.Show$$anonymous$$erboardUI();
} else {
PlayerPrefs.SetInt("use_game_services", 0);
}
});
}
public static void ShowAchievementsUI() {
if(IsAuthenticated) {
Social.ShowAchievementsUI();
}
}
public static void LoadAchievements() {
if(IsAuthenticated) {
Social.LoadAchievements((IAchievement[] achievements) => {
Debug.Log ("Got " + achievements.Length + " achievement instances");
foreach(IAchievement achievement in achievements) {
Debug.Log(achievement.id + " -> " + achievement.completed);
$$anonymous$$yAchievements[achievement.id] = achievement.completed;
}
});
}
}
}
I don't think any of that code is causing the problem. Pay attention to your errors.
how$$anonymous$$erboardUI not implemented UnityEngine.Social:Show$$anonymous$$erboardUI()
Your answer
Follow this Question
Related Questions
Canvas Error - Everything tinted blue 2 Answers
InvalidOperationException: Operation is not valid due to the current state of the object System 1 Answer
Unity Editor Error Build,Unity Editor Error build 0 Answers
Unity Editor CRashes Instantly after load (pls helps D:) 0 Answers
Error BCW0012 'UnityEngine.Application.LoadLevel(String)' is obsolete. Use SceneManager.LoadScene 1 Answer