problem while signing up user ___ android

Hello
I am trying to sign up user with the following code:
user1 = new BackendlessUser();
user1.setEmail(em);
user1.setPassword§;
user1.setProperty(“name”, n);
user1.setProperty(“UserPhoto”, url);
Backendless.UserService.register(user1, new AsyncCallback<BackendlessUser>() {
@Override
public void handleResponse(BackendlessUser backendlessUser) {

}
But I get an error …
the error code is : 1020 … and the message is : missing ___ class property for entity :UserPhoto

I 'v searched a lot but haven’t found The solutionThanks

Could you please attach a screenshot from the Backendless console of the Users > User Properties screen?

this ?

Yes, thank you. Could you check what the “url” object is in this code:

user1.setProperty(“UserPhoto”, url);

Is it a string or a custom object?

string

The error message you’re getting indicates that the value you send for the “UserPhoto” property is not just string. Double check the values in debugger and also inspect request/response using Chrome’s Network tab.

Thanks … but I haven’t understand the last thing :confused: Sorry

if (userphoto.getFileURL() != null) {
url = new URL(userphoto.getFileURL());
Toast.makeText(SignUpActivity.this,
“SAVED”, Toast.LENGTH_SHORT).show();
}that is the URL… it is a string !

If the “url” variable is an instance of the URL class, it is not a string and that explains the problem.

Yeah That right … I didn’t notice that … thanks you Mr.Mark and sorry for taking your time :frowning: (y)