Question by
ilovebread · Jul 18, 2017 at 10:32 AM ·
androidiappurchaseamazon
Java Exception When Setting Amazon as Target UnityIAP
Hi Guys,
I'm on Unity 5.6, have multi-dex enabled, and am running into the following exception when setting Amazon as the UnityIAP target platform:
07-23 22:29:10.249: E/AndroidRuntime(27306): FATAL EXCEPTION: main
07-23 22:29:10.249: E/AndroidRuntime(27306): Process: my.unity.app, PID: 27306
07-23 22:29:10.249: E/AndroidRuntime(27306): java.lang.NoClassDefFoundError: com.unity3d.player.j
07-23 22:29:10.249: E/AndroidRuntime(27306): at com.unity3d.player.UnityPlayer.<clinit>(Unknown Source)
07-23 22:29:10.249: E/AndroidRuntime(27306): at com.unity3d.player.UnityPlayerActivity.onCreate(Unknown Source)
07-23 22:29:10.249: E/AndroidRuntime(27306): at com.prime31.UnityPlayerNativeActivity.onCreate(UnityPlayerNativeActivity.java:19)
07-23 22:29:10.249: E/AndroidRuntime(27306): at android.app.Activity.performCreate(Activity.java:5277)
07-23 22:29:10.249: E/AndroidRuntime(27306): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
07-23 22:29:10.249: E/AndroidRuntime(27306): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2213)
07-23 22:29:10.249: E/AndroidRuntime(27306): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2325)
07-23 22:29:10.249: E/AndroidRuntime(27306): at android.app.ActivityThread.access$800(ActivityThread.java:145)
07-23 22:29:10.249: E/AndroidRuntime(27306): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1216)
07-23 22:29:10.249: E/AndroidRuntime(27306): at android.os.Handler.dispatchMessage(Handler.java:102)
07-23 22:29:10.249: E/AndroidRuntime(27306): at android.os.Looper.loop(Looper.java:145)
07-23 22:29:10.249: E/AndroidRuntime(27306): at android.app.ActivityThread.main(ActivityThread.java:5266)
07-23 22:29:10.249: E/AndroidRuntime(27306): at java.lang.reflect.Method.invokeNative(Native Method)
07-23 22:29:10.249: E/AndroidRuntime(27306): at java.lang.reflect.Method.invoke(Method.java:515)
07-23 22:29:10.249: E/AndroidRuntime(27306): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:826)
07-23 22:29:10.249: E/AndroidRuntime(27306): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:642)
07-23 22:29:10.249: E/AndroidRuntime(27306): at dalvik.system.NativeStart.main(Native Method)
Setting to regular Android platform removes the exception (but replaces it with AmazonAppStore related class not found issue).
Any ideas on why I'm encountering this and how to possibly resolve this?
Warm regards, Lee
Comment