Forum General Android AndroidJavaException: java.lang.ClassNotFoundExcepti

Any issues or discussions relating to Unity development are welcome here.

Android AndroidJavaException: java.lang.ClassNotFoundExcepti

Postby MoDDiB » November 26th, 2015, 4:34 pm

Hello, I am testing my build on an android device and I get this error :

I/Unity (20037): AndroidJavaException: java.lang.ClassNotFoundException: com.playerio.PlayCodeStorage
I/Unity (20037): at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <filename unknown>:0
I/Unity (20037): at UnityEngine.AndroidJNISafe.CallStaticObjectMethod (IntPtr clazz, IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in <filename unknown>:0
I/Unity (20037): at UnityEngine.AndroidJavaObject._CallStatic[AndroidJavaObject] (System.String methodName, System.Object[] args) [0x00000] in <filename unknown>:0
I/Unity (20037): at UnityEngine.AndroidJavaObject.CallStatic[AndroidJavaObject] (System.String methodName, System.Object[] args) [0x00000] in <filename unknown>:0
I/Unity (20037): at UnityEngine.AndroidJavaObject.FindClass (System.String name) [0x00000] in <filename unknown>:0
I/Unity (20037): at UnityEngine.AndroidJavaObject._AndroidJavaObject (System.String className, System.Object[] args) [0x00000] in <filename unknown>:0
I/Unity (20037): at UnityEngine.AndroidJavaObject..ctor (System.String className, System.Object[] args) [0x00000] in <filename unknown>:0
I/Unity (20037): at System.Reflection.MonoCMethod.Invoke (


I got the last version of YGN ( november 16th )
What's happening ?
MoDDiB
 
Posts: 30
Joined: July 13th, 2014, 8:41 pm

Re: Android AndroidJavaException: java.lang.ClassNotFoundExc

Postby Guillaume » November 26th, 2015, 5:02 pm

Are you using with Unity or the native SDK ?
If Unity, have you tried to disable Stripping ?
Guillaume
 
Posts: 277
Joined: March 28th, 2014, 1:59 am
Location: France

Re: Android AndroidJavaException: java.lang.ClassNotFoundExc

Postby MoDDiB » November 26th, 2015, 5:05 pm

It's with Unity and "stripping level" is set to disable
( Unity 5 )
MoDDiB
 
Posts: 30
Joined: July 13th, 2014, 8:41 pm

Re: Android AndroidJavaException: java.lang.ClassNotFoundExc

Postby Guillaume » November 26th, 2015, 9:29 pm

Are you using IL2CPP or Mono Runtime ?
Also, make sure that your Java plugin is at the root of Android plugins, this mean in your Project folder something like Assets/Plugins/Android/PlayerIOClient.jar (or something like that).
Guillaume
 
Posts: 277
Joined: March 28th, 2014, 1:59 am
Location: France

Re: Android AndroidJavaException: java.lang.ClassNotFoundExc

Postby MoDDiB » November 27th, 2015, 3:39 pm

Guillaume wrote:Are you using IL2CPP or Mono Runtime ?
Also, make sure that your Java plugin is at the root of Android plugins, this mean in your Project folder something like Assets/Plugins/Android/PlayerIOClient.jar (or something like that).

Mono runtime,
I don't have any PlayerIOClient.jar
it's a file called UnityAndroidExtension.jar did they forgot this file in the last version ?
MoDDiB
 
Posts: 30
Joined: July 13th, 2014, 8:41 pm

Re: Android AndroidJavaException: java.lang.ClassNotFoundExc

Postby MoDDiB » November 27th, 2015, 3:50 pm

I got the file in the sample and everything is ok now.
The file is just missing from the unity package !
MoDDiB
 
Posts: 30
Joined: July 13th, 2014, 8:41 pm

Re: Android AndroidJavaException: java.lang.ClassNotFoundExc

Postby Guillaume » November 27th, 2015, 3:51 pm

Congrats! :)
Guillaume
 
Posts: 277
Joined: March 28th, 2014, 1:59 am
Location: France


Return to General



cron