Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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)

like image 830
Eric Avatar asked Sep 17 '25 05:09

Eric


1 Answers

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

like image 101
Eric Avatar answered Sep 19 '25 23:09

Eric