无法在android中使用AWS创建组

无法在android中使用AWS创建组,android,aws-sdk,Android,Aws Sdk,我已经使用AWSMobileClient和CognitoUserPool在CognitoUserPool中成功创建了用户。 当我尝试使用AmazonCongnitoIdentityProviderClient创建用户组时,出现以下错误 未找到:com.amazonaws.services.cognitoidentityprovider.model.ResourceNotFoundException:用户池us-east-2_WltHRFcPa不存在。(服务:AmazonCongnitoIdent

我已经使用AWSMobileClient和CognitoUserPool在CognitoUserPool中成功创建了用户。 当我尝试使用AmazonCongnitoIdentityProviderClient创建用户组时,出现以下错误

未找到:com.amazonaws.services.cognitoidentityprovider.model.ResourceNotFoundException:用户池us-east-2_WltHRFcPa不存在。(服务:AmazonCongnitoIdentityProvider;状态代码:400;错误代码:ResourceNotFoundException;请求ID:82a3867b-3e88-11e9-9d55-1173837f7db5)

用于创建用户的代码

val groupReq=CreateGroupRequest()

groupReq.groupName=“ABC”

groupReq.userPoolId=“us-east-2_WltHRFcPa”

groupReq.description=“abx” val result1:CreateGroupResult=client.createGroup(groupReq)