Unity 的 Google In-App Review 插件错误:java.lang.ClassNotFoundException: com.google.android.play.core.review.ReviewManagerFactory [英] Unity's Google In-App Review plugin error: java.lang.ClassNotFoundException: com.google.android.play.core.review.ReviewManagerFactory

查看:55
本文介绍了Unity 的 Google In-App Review 插件错误:java.lang.ClassNotFoundException: com.google.android.play.core.review.ReviewManagerFactory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试集成 Google 的应用内评论 功能进入我的 Unity 应用程序,并在 logcat 控制台上收到以下运行时错误消息.有人知道这个问题的解决方案吗?

I'm trying to integrate Google's In-app Review feature into my Unity application and getting the following runtime error message on logcat console. Anyone knows the solution to this problem?

AndroidJavaException:java.lang.ClassNotFoundException:com.google.android.play.core.review.ReviewManagerFactory(文件名:目前在 il2cpp 行不可用:-1)

推荐答案

事实证明该问题是由混淆器混淆引起的.为了保留符号,我必须将以下内容添加到 proguard 定义文件中:

It turned out that the problem was introduced by a proguard obfuscation. In order to keep the symbols I had to add the following to the proguard definition file:

-keep class com.google.android.play.core.** { *;}

这篇关于Unity 的 Google In-App Review 插件错误:java.lang.ClassNotFoundException: com.google.android.play.core.review.ReviewManagerFactory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆