Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Error after adding pubspec dependency #46

Open
pradgc opened this issue Jul 17, 2020 · 5 comments
Open

Error after adding pubspec dependency #46

pradgc opened this issue Jul 17, 2020 · 5 comments

Comments

@pradgc
Copy link

pradgc commented Jul 17, 2020

After I add in pubspec.yaml, I am getting the following error -

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_zoom_plugin:bundleDebugAar'.

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :flutter_zoom_plugin project caused this error: /home/system/.pub-cache/git/flutter_zoom_plugin-1647c9e48d2f31da434a777037d949ed3f3391ff/android/libs/commonlib/commonlib.aar, /home/system/.pub-cache/git/flutter_zoom_plugin-1647c9e48d2f31da434a777037d949ed3f3391ff/android/libs/mobilertc/mobilertc.aar

  • Try:
    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.

  • Get more help at https://help.gradle.org

BUILD FAILED in 14s
Exception: Gradle task assembleDebug failed with exit code 1

Please help

@DzungTNgo
Copy link
Contributor

Hi,

Could you please provide more information about flutter doctor output, device used, version etc. as outlined in the bug report template?

@ortal83cohen
Copy link

I've got the same issue, after updating the android project to com.android.tools.build:gradle:4.0.0

@rubensbarreto
Copy link

rubensbarreto commented Sep 2, 2020

Good evening same issue here running on android simulator, using Visual Studio Code 1.48.2, VSCode Flutter plugin 3.13.2 here are the info:

**Branch:**master
Flutter Doctor output:
[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.6 19G2021, locale en-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.48.2)
[✓] Connected device (1 available)

• No issues found!

**Android Simulator:**Pixel 3 API 29 (android-x86 emulator)
build.gradle config:
minSdkVersion 24
targetSdkVersion 29

But, if i run it from Android Studio it compiles and works, so it seems to be an issue only when running from Visual Studio Code

@hashirventhodi
Copy link

any solution?

@dhruvsakariyalvits
Copy link

I've got the same issue, after updating the android project to com.android.tools.build:gradle:4.0.0

same here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants