Skip to content
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

Build failed: Plugin with id 'com.android.library' not found #312

Closed
syh31 opened this issue May 6, 2021 · 3 comments
Closed

Build failed: Plugin with id 'com.android.library' not found #312

syh31 opened this issue May 6, 2021 · 3 comments

Comments

@syh31
Copy link

syh31 commented May 6, 2021

运行没有问题,flutter build apk会报错
报错Error:

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\flutter\.pub-cache\hosted\mirrors.tuna.tsinghua.edu.cn%47dart-pub\agora_rtc_engine-3.1.3\android\build.gradle' line: 28

* What went wrong:
A problem occurred evaluating root project 'agora_rtc_engine'.
> Plugin with id 'com.android.library' not found.

* 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 2s


The plugin agora_rtc_engine could not be built due to the issue above.

gradle: gradle-6.7-all
com.android.tools.build:gradle:4.1.0

#252 #256 #260 didn't help
这些类似的问题我都看过试过了,但是还是无法解决

@syh31
Copy link
Author

syh31 commented May 6, 2021

flutter doctor -v

[✓] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Version 10.0.19042.928], locale zh-CN)
    • Flutter version 1.22.6 at D:\flutter
    • Framework revision 9b2d32b605 (3 months ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5
    • Pub download mirror https://mirrors.tuna.tsinghua.edu.cn/dart-pub
    • Flutter download mirror https://mirrors.tuna.tsinghua.edu.cn/flutter


[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\dell\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: D:\Program Files (x86)\Jetbrains\apps\AndroidStudio\ch-0\201.7199119\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[!] Android Studio (version 4.1.0)
    • Android Studio at D:\Program Files (x86)\Jetbrains\apps\AndroidStudio\ch-0\201.7199119
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] Connected device (1 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

! Doctor found issues in 1 category.

@LichKing-2234
Copy link
Contributor

建议删除缓存重新 pub get

@syh31 syh31 closed this as completed May 11, 2021
@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 2023
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

2 participants