- Home /
Google Play Games Plugin causing errors on import
The ultimate goal here is to get leaderboards working in my android app. I'm working in the most up to date version of unity (5.2.2f1), and to get the plugin I essentially just went to the git site for Google's Play Games plugin (https://github.com/playgameservices/play-games-plugin-for-unity) and download the zip of the main project. Then I unzip that into my project and let it compile where I'm greeted by the following errors in the console...
the only one that doesn't clear is "Assets/play-games-plugin-for-unity-master/play-games-plugin-for-unity-master/source/PluginDev.UnitTests/GooglePlayGames/ISocialPlatform/PlayGamesPlatformTest.cs(17,7): error CS0246: The type or namespace name `NUnit' could not be found. Are you missing a using directive or an assembly reference?"
Am I doing something wrong when I'm importing this plugin? Do I need to find the NUnity dll online and import that manually? I could use some pointers on this and I'm hoping that whatever I'm doing wrong is pretty simple.
Answer by TSI25 · Nov 05, 2015 at 10:28 PM
I deleted the files causing issues, namely everything in the GooglePlayGames folder at source/PluginDev.UnitTest/GooglePlayGames . Everything compiles and i seem to have access to the plugin's functionality but I haven't gotten much further than that. I'll post again if I'm still having issues/if those files were important for some reason.
Answer by Retruate · Jan 21, 2016 at 05:37 PM
I just wanted to note that I'm having the same error. Whenever I delete the trouble making files I continue to get more errors. I backed up my project before I imported the plug-in. I'll replace my current version with a copy of my backed up version and try again.
I hope someone is able to fix this because I'm not an expert on this subject.
I just tried importing it another way. I was originally putting the .zip file in my project and extracting it from there. This time I copied the .unitypackage file to the desktop and used the import option inside the Assets menu in Unity to open the .unitypackage file. I get ResolutionException errors, but my game can play. I'll try and see how it works later on.
Same thing, problem was that I was importing whole zip folder in unity ins$$anonymous$$d of unity package inside current-build folder. So for anybody else who is experiencing this problem just import unity package and you are good to go.
Answer by saadali211 · Dec 21, 2017 at 11:03 AM
" FIXED " OPEN YOUR PACKAGE IN THE EXPLORER AND FIND ALL FILES WITH .uNITYPACKAGE AND OPEN THE FILE WITH LATEST VERSION UNITY WILL IMPORT ALL THE FILES AND NO ERROR .
FOR VIDEO CHECK MY YOUTUBE CHANNEL