Click here to Skip to main content
15,880,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I tried using this[^] tutorial from the App Guruz website to observe and point out the errors on not showing the leaderboard UI. Not only the codes but also the plugins as well. (see this link[^] below for more info) By the way, i'm using Unity, making games.

After I succeeded in showing leaderboard UI and stick the modified over the latest GPG plugin found in a GIT website (GIT Hub)[^] since most plugins have issues. Now, when I'm adding the the firebase lib folder, I got some errors. I addressed it. Next I added the Google Play Games services ad plugins (the normal and the lite ones found in SDK folder) ver. 9+ .AAR files and a Unity plugin library .JAR file. The rest for the .AAR files are 8.4.0 and I don't modified one of these to ensure less error encounter. I even check at the Project Settings folder for the Unity and inspect any Google Dependency related .XML files and ones with the text file.

When I'm building the APK and I wanna see the worked function of the leaderboard UI and the ads at the same time, I got this DirectoryNotFoundExeption and I opened the .AAR files like the same as I opened the .RAR file. Copying all the res folder files and transferred it as well. Test it and nothing happened. When I checked it the ads .AAR file (both normal and lite) and all of the contents inside res folder are gone!

I tried to open the GPGUpgrader.cs via "Assets/GooglePlayGames/Editor" and commented on this one to disable it:

C#
string clientDir = "Assets/Plugins/Android/google-play-services_lib";
GPGSUtil.DeleteDirIfExists(clientDir);


After building an APK and still got error. The contents inside res folder of each .AAR file deleted automatically after build!

What I have tried:

Attempting to add some plugins to show ads via Admob or Google Play Services ads after succeeding showing leaderboard UI but ended up DirectoryNotFoundException when building APK via Unity.
Posted
Updated 15-Aug-16 19:51pm
v2
Comments
Richard MacCutchan 16-Aug-16 3:42am    
You should ask the person who wrote the tutorial.
David Dimalanta 17-Aug-16 0:09am    
I did. Now, I'm waiting for his answer...
David Crow 6-Jun-17 22:00pm    
Have you tried cleaning and rebuilding the project?

Does the "assets\plugins\android\res\drawable-xxhdpi\common_Google_signin_btn_icon_light_disabled.9.png" file exist?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900