New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FAILURE: Build failed with an exception. Flutter 2.0 #432
Comments
@Yonkokilasi can you post your |
[✓] Flutter (Channel stable, 2.0.1, on macOS 11.2.2 20D80 darwin-x64, locale en-GB) [!] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] VS Code (version 1.54.1) [✓] Connected device (1 available) ! Doctor found issues in 1 category. |
@Yonkokilasi thanks for the details. My setup is exactly the same as yours and I am able to build apps (android release) that have amplify_auth_cognito as dependency with flutter 2.0. Will it be possible for you to host a minimal reproducible app on github where we can pull down and reproduce this issue? |
Hi @Amplifiyer @Yonkokilasi has anyone found the solution yet? We're also facing this exact problem and it came out of nowhere. We were able to run it two days ago (Sunday), and hasn't done anything to the code ever since. Flutter doctor result is fine [√] Flutter (Channel beta, 2.0.1, on Microsoft Windows [Version 10.0.19042.867], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [√] Chrome - develop for the web [√] Android Studio (version 3.5) [√] VS Code (version 1.54.3) [√] Connected device (3 available) • No issues found! |
It looks like that jcenter was down yesterday during the time you ran into this issue https://status.bintray.com/ |
I don't know if this can be useful....but i faced this problem 20 minutes ago (with flutter 1.22) and i fixed it by changing on the build.gradle the minSdkVersion (from 16 to 21) |
im facing this issue too, any support on this please? |
The minSDK is already 21
|
This will not be possible |
A new error is now showing @Amplifiyer
|
It is a conflict with the new Flutter's version. |
same problem |
facing the same issue with Flutter SDK 2.0.3 |
Same problem |
Same here |
same problem. Is there any solution? |
Could somebody please post a pubspec file and an android/build.gradle file for an app that is reproducing this behavior (obviously with any sensitive info redacted)? |
having the same issue |
So i was able to resolve (resolve isnt really the right word) but i was able to figure out that one of the other packages i was using in my pubspec.yaml file was interfering with this package. once i removed it, all was well again. bad news is i need to find another package to use for that one i just took out. |
@fdarsot
Which package was that ?
…On Fri, 28 May, 2021, 8:23 am fdarsot, ***@***.***> wrote:
So i was able to resolve (resolve isnt really the right word) but i was
able to figure out that one of the other packages i was using in my
pubspec.yaml file was interfering with this package.
once i removed it, all was well again.
bad news is i need to find another package to use for that one i just took
out.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#432 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE3LEGFVQD6GI33RZV2ORXTTP4ASJANCNFSM4YZKNGYQ>
.
|
Please find pubsepc and android.build. Apologies for word document. |
I did some changes and it worked, but I don't know which one did the resolution
Was able to build successfully then for amplify_flutter ^0.1.4 and amplify_auth_cognito ^0.1.4 |
Having this issue |
@ollija would it be possible to share a minimal project where you find this to be reproducible? Any additional information about the current state of your project ( |
Even i am facing same issue |
I'm having the same issue on the flutter's amplify example project: https://github.com/aws-amplify/amplify-flutter Any suggestions? |
all I had similar issue, adding |
I get this error message when I update my styles.xml files to use AppCompat themes instead of the normal ones, as soon as I switch back, the error goes away & the app builds fine. Obviously this doesn't really help me, as I need the AppCompat themes to use the local_auth package but hopefully it might help you get to the bottom of the problem & fix it. |
Hi All Is anyone still facing the issue with the latest release Regards |
Describe the bug
FAILURE: Build failed with an exception.
Build file '*/.pub-cache/hosted/pub.dartlang.org/amplify_auth_cognito-0.1.0/android/build.gradle' line: 62
A problem occurred evaluating root project 'amplify_auth_cognito'.
Comprehensive documentation on dependency notations is available in DSL reference for DependencyHandler type.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I am able to build an apk successfully
Screenshots
If applicable, add screenshots to help explain your problem.
Platform
Amplify Flutter current supports iOS and Android. This issue is reproducible in (check all that apply):
The text was updated successfully, but these errors were encountered: