Closed kameshkarthi closed 1 year ago
i am using following versions amplify_auth_cognito: ^0.6.8 amplify_storage_s3: ^0.6.8 amplify_flutter: ^0.6.8
Hello @kameshkarthi - From the output of your dependencies, it looks like you are using version 1.0.0 (developer preview).
The following are listed as dependencies:
- amplify_auth_cognito 1.0.0-next.0+5 [amplify_auth_cognito_android amplify_auth_cognito_dart amplify_auth_cognito_ios amplify_core amplify_flutter amplify_secure_storage async flutter flutter_web_plugins meta path plugin_platform_interface]
- amplify_flutter 1.0.0-next.0+3 [amplify_core amplify_datastore_plugin_interface amplify_flutter_android amplify_flutter_ios amplify_secure_storage aws_common collection flutter meta plugin_platform_interface]
- amplify_storage_s3 1.0.0-next.0+2 [amplify_storage_s3_android amplify_storage_s3_ios amplify_core aws_common flutter meta plugin_platform_interface]
Can you confirm which version you are using so that we can try to reproduce this? Thanks.
Hello @Jordan-Nelson I am using:
amplify_auth_cognito: 0.5.1 amplify_flutter: 0.5.1
and there is this problem too.
I tested this version 0.6.8 and didn't work.
The work around is setting in build.gradle:
configurations { all*.exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx' }
Hi @juanrequeijo @kameshkarthi
Thanks for reaching out here. The error appears to be that your dependencies use the kotlin
and java
version for the viewmodel
library as described in this stackoverflow answer. I would recommend implementing the fix in that answer or using @juanrequeijo fix provided above.
Hi @juanrequeijo @kameshkarthi - any luck with fixing this issue as mentioned by @fjnoyp ?
@juanrequeijo @kameshkarthi - Please let us know if you were not able to resolve the issue with the suggestion above. Thanks.
I just ran into this problem, the solution is:
configurations { all { exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx' } }
Add that in your build.gradle.
Although, according to several android forums, this happens due to inconsistencies between the versions of lifecycle that are used, perhaps it would be good to review this in the library
Description
When i add amplify dependencies in pubspec build failed with following error
i am using following versions amplify_auth_cognito: ^0.6.8 amplify_storage_s3: ^0.6.8 amplify_flutter: ^0.6.8
Anybody help to fix this?
Categories
Steps to Reproduce
No response
Screenshots
No response
Platforms
Android Device/Emulator API Level
No response
Environment
Dependencies
Device
Sony xperia z2
OS
Android 7.1.2
Deployment Method
Amplify CLI
CLI Version
4.46.1
Additional Context
No response
Amplify Config
{ "UserAgent": "aws-amplify-cli/2.0", "Version": "1.0", }