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
I can save and get data to DynamoDB on Unity Editor .
When i build the app on Android device the LoadAsync and SaveAsync function is not run then i get this error on logcat:
ArgumentException: Object of type 'System.Object[]' cannot be converted to type 'UnityEngine.AndroidJavaObject[]'.
Then I do this thinks and try to build the app again
Upgrade the AWS SDK to last version : aws-sdk-unity_3.3.618.0
Upgrade the Unity to last version : 2019.2.10f1
The error is disappear on logcat, but the LoadAsync and SaveAsync function still not running , also the logcat not have any error.
Here is my code:
void Start()
{
UnityInitializer.AttachToGameObject(this.gameObject);
AWSConfigs.HttpClient = AWSConfigs.HttpClientOption.UnityWebRequest;
var credentials = new CognitoAWSCredentials("ap-southeast-1XXXX", RegionEndpoint.APSoutheast1);
AmazonDynamoDBClient client = new AmazonDynamoDBClient(credentials, RegionEndpoint.APSoutheast1);
var Context = new DynamoDBContext(client);
Context.LoadAsync<DynamoDB>("UserId", (AmazonDynamoDBResult<DynamoDB> result) => {
myTextView.text = "get"; //work on Unity Editor not work on Android
}, null);
}
Hi @asahimx, as noted in that issue you referenced, #1262, we are transitioning support of Unity from the aws-sdk-unity to our AWSSDK .NET Standard 2.0 dlls. Please try using those instead of the aws-sdk-unity package as we are not supporting fixes for this package anymore. Thanks for your understanding.
Expected Behavior
AWS DynamoDB SDK works on Unity
Current Behavior
I can save and get data to DynamoDB on Unity Editor .
When i build the app on Android device the LoadAsync and SaveAsync function is not run then i get this error on logcat:
ArgumentException: Object of type 'System.Object[]' cannot be converted to type 'UnityEngine.AndroidJavaObject[]'.
Then I do this thinks and try to build the app again
The error is disappear on logcat, but the LoadAsync and SaveAsync function still not running , also the logcat not have any error.
Here is my code:
Possible Solution
same issue:
#1262
Your Environment
The text was updated successfully, but these errors were encountered: