Skip to main content

Ambiguous overloads found

Unity: 2021.3.29f1 +, 2022.3.5f1 +, 2023.1.5f1 + | Appodeal SDK: 3.2.0-beta.1 and older


The error Ambiguous overloads found for onRewardedVideoFinished with given parameters occurs when you try to watch Rewarded Video due to the bug in Unity, reproducible after the fix from this thread.

Exception: Ambiguous overloads found for onRewardedVideoFinished with given parameters
at UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, System.Object[] args) [0x00178] in <23c80093513c4a0f91dfbfd95239a1e8>:0
Rethrow as TargetInvocationException: AppodealStack.Monetization.Platforms.Android.AppodealRewardedVideoCallbacks.onRewardedVideoFinished(System.Double,null)
at UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, System.Object[] args) [0x0027a] in <23c80093513c4a0f91dfbfd95239a1e8>:0
at UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, UnityEngine.AndroidJavaObject[] javaArgs) [0x00052] in <23c80093513c4a0f91dfbfd95239a1e8>:0
at UnityEngine.AndroidJavaProxy.Invoke (System.String methodName, System.IntPtr javaArgs) [0x000d6] in <23c80093513c4a0f91dfbfd95239a1e8>:0
at UnityEngine._AndroidJNIHelper.InvokeJavaProxyMethod (UnityEngine.AndroidJavaProxy proxy, System.IntPtr jmethodName, System.IntPtr jargs) [0x00009] in <23c80093513c4a0f91dfbfd95239a1e8>:0

Recommended solution:

Update Appodeal SDK version to 3.2.0-beta.2 or newer using our upgrade guide.

Workaround for Appodeal SDK versions older than 3.2.0-beta.2:

  1. Go to your App Settings → Placements tab.

  2. Add Reward setting with any value as shown below.

note

Complete the above steps for your placements, where you show rewarded video ads.