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:
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.