Unity's Google In-App Review plugin error: java.lang.ClassNotFoundException: com.google.android.play.core.review.ReviewManagerFactory

China☆狼群 提交于 2020-12-13 04:23:22

问题


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 (Filename: currently not available on il2cpp Line: -1)


回答1:


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.** { *; }



来源:https://stackoverflow.com/questions/63534316/unitys-google-in-app-review-plugin-error-java-lang-classnotfoundexception-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!