Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ArrayStoreException #5

Closed
ghost opened this issue Mar 7, 2013 · 5 comments
Closed

java.lang.ArrayStoreException #5

ghost opened this issue Mar 7, 2013 · 5 comments

Comments

@ghost
Copy link

ghost commented Mar 7, 2013

Hi, have you ever encounter java.lang.ArrayStoreException when logging event with CCDictionary?

in my case, it only occurs in samsung devices :|

thanks mate !

@diwu
Copy link
Owner

diwu commented Mar 7, 2013

I never encountered this exception myself. It might have something to do with the CCDictionary implementation. I suggest you take a look at your cocos2d-x version's implementation of CCDictionary.

@ghost
Copy link
Author

ghost commented Mar 7, 2013

thanks for the reply !

however i got this exception

02-07 16:55:06.711: W/System.err(10381): java.lang.ArrayStoreException: java.lang.String cannot be stored in an array of type java.lang.String[][]

but it only occurs in samsung, weird :|

@daebaknara
Copy link

edit AnalyticXStringUtilAndroid.cpp (diwu/AnalyticX)
line 24
jStringCls = pEnv->FindClass("[Ljava/lang/String;");
replace to
jStringCls = pEnv->FindClass("java/lang/String");

@diwu
Copy link
Owner

diwu commented Mar 13, 2013

@rhapsodixx the latest commits might have fixed your problem. could you fetch it and try again?

@ghost
Copy link
Author

ghost commented Mar 13, 2013

yap ! its solved, thanks a lot mate 👍

@diwu diwu closed this as completed Mar 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants