New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error In LogCat - com.google.games.bridge.HelperFragment #3092
Comments
|
HelperFragment is a java class, which is a part of this plugin that talks with the Java SDK. As it is a part of this plugin, just importing this plugin into your project must be sufficient to have that class. The exception is The likely scenario is that |
|
That is incredibly helpful, thank you very much! However, I did not have Minify active. I activated it, and tried to add a custom proguard file with the contents listed here, but unfortunately the issue still persists. Here is the error, and one more I forgot to mention in my last message: *** [Play Games Plugin 0.10.10] 11-30-21 15:13:53 -05:00 ERROR: Exception launching token request: java.lang.ClassNotFoundException: com.google.games.bridge.HelperFragment Do I need to add another element to the proguard file which is not listed in the link above? Perhaps I need to add:
Thank you! |
|
One more thing to note - when I try to build the Google Play Bundle version of the app (not .apk, but .aab) with Minify active, the build fails and says the following: java.io.IOException: It does not happen when I deselect Minify. Perhaps the issue is that my version of Play Games Services does not match the proguard information listed in that link above? Thank you for the help! |
I would first go with trying out building the plugin as .apk and check if it works. Then if it works I would continue with whether you can build it as .aab . You should not need adding extra proguard rules actually. However, if your project also includes other android libraries, then the rules in that list would not be enough. The way proguard works is starting from the classes that match with the keep rules, it keeps all used classes and strips out the rest. So, if you need other libraries and are getting |
|
Thank you for all your help. When I build the .apk it does build but still get the same error in logcat, and it does not build the .aab if Minify is enabled. I am starting to think there will be no solution here, as I have added the proguard file with those lines, but still am getting the same error. Perhaps it is a weird combination of the CloudOnce plugin and my version of Unity, or something like that. If anyone is able to help me via Discord, or if it would help to post a video, let me know! Thank you! |
|
Hi @AndrewCooper69 did you find a solution to your issue? |
I have not found a solution no. If you have any ideas on how to help, I would appreciate it! The game is currently released on the Google Play Store under the name Rhythm Royale. If you would like to check it out, you may be able to see the logcat output from the game itself if you have developer mode enabled. We decided to switch the leaderboards to a scoreboard saved internally on a phone, but obviously a shared leaderboard would be preferable. Andrew Cooper |
|
Yep, that is exactly my problem and still searching for a solution. |
Unfortunately I was never able to find a solution. We ended up releasing the game and closing out development without Leaderboards. It sucks, because we really wanted them in there, but no solution was found! |
|
I want to make an edit on my post. In between the builds (on my previous post) I was trying many things try to fix the issue, I though the below was the solution that worked but apparently it did not. Yesterday, I removed Google Ads plugin (will work with unity ads), and re-installed playgameservices plugin just to make sure. The problem came back and below solution was not working anymore... Again after many trials, I made it work. I'm still not sure which one but it has to be one of the below (maybe both). Second one sounds silly yet it's the same step I did also in the previous fix. 1- Unchecked Minify on Release from build. --- IGNORE THIS OLD SOLUTION--- In my proguard file, below line was already there. But apparently that was not enough, so in one of my tries I saw a post about adding below lines and it did work for me. So in case anyone sees this, they may try this solution. |
|
I don't have proguard but unchecking minify worked for me. Which is a shame I want it to work with minify 😩 |
|
Having the same issue, adding |
|
I had the same issue, here I found the solution: |
I am using CloudOnce v2.7.1. When I run my project on an Android device, I get the following error in logcat:
"*** [Play Games Plugin 0.10.10] 11-24-21 15:40:41 -05:00 ERROR: Exception launching token request: java.lang.ClassNotFoundException: com.google.games.bridge.HelperFragment"
The plugin doesn't log in to cloud services because of this error. I have 3 questions:
Thank you!
The text was updated successfully, but these errors were encountered: