You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I binds with some SDKs,it have the err.
java.lang.ArrayStoreException: source[0] of type org.robovm.bindings.sharesdk.SSDKPlatformType cannot be stored in destination array of type org.robovm.objc.ObjCObject[]
at java.lang.System.arraycopy(System.java:273)
at java.lang.System.arraycopy(System.java:199)
at java.util.ArrayList.toArray(ArrayList.java:523)
at org.robovm.apple.foundation.NSArray.(NSArray.java:205)
at org.robovm.apple.foundation.NSArray$AsListMarshaler.toNative(NSArray.java:66)
My binds method is @method(selector = "registerApp:activePlatform:onImport:onConfiguration:")
public native static void registerApp(String key,
ArrayList activePlatforms, SSDKImportHandler onImport,
SSDKConfigurationHandler onConfiguration);
and my enum is
public enum SSDKPlatformType implements ValuedEnum {
Unknown(0), //
SinaWeibo(1), //
TencentWeibo(2), //
// Twitter(11), //
// WechatSession(22), //
// WechatTimeline(23), //
;
private final long n;
private SSDKPlatformType(int value) {
this.n = value;
}
@Override
public long value() {
return n;
}
whats wrong with them?
The text was updated successfully, but these errors were encountered:
when I binds with some SDKs,it have the err.
java.lang.ArrayStoreException: source[0] of type org.robovm.bindings.sharesdk.SSDKPlatformType cannot be stored in destination array of type org.robovm.objc.ObjCObject[]
at java.lang.System.arraycopy(System.java:273)
at java.lang.System.arraycopy(System.java:199)
at java.util.ArrayList.toArray(ArrayList.java:523)
at org.robovm.apple.foundation.NSArray.(NSArray.java:205)
at org.robovm.apple.foundation.NSArray$AsListMarshaler.toNative(NSArray.java:66)
My binds method is
@method(selector = "registerApp:activePlatform:onImport:onConfiguration:")
public native static void registerApp(String key,
ArrayList activePlatforms, SSDKImportHandler onImport,
SSDKConfigurationHandler onConfiguration);
and my enum is
public enum SSDKPlatformType implements ValuedEnum {
Unknown(0), //
SinaWeibo(1), //
TencentWeibo(2), //
// Twitter(11), //
// WechatSession(22), //
// WechatTimeline(23), //
;
private final long n;
whats wrong with them?
The text was updated successfully, but these errors were encountered: