2

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)

Eric
  • 1,685
  • 1
  • 17
  • 32

2 Answers2

9

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

Eric
  • 1,685
  • 1
  • 17
  • 32
  • I am using Gradle for my minification. Any ideas on a solution there? – Evorlor Aug 30 '20 at 00:26
  • 1
    I'm using _minifyEnabled_ as well. Try first setting it up to _false_ to check if minification process is the culprit in your case – Eric Sep 03 '20 at 06:53
0

For anyone that has this issue. For me, I had to force resolve Android external dependencies

Sven
  • 49
  • 6