-
Notifications
You must be signed in to change notification settings - Fork 4k
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 with an exception. * Where: Build file line: 35 * What went wrong: A problem occurred evaluating root project 'android'. > Could not find method implementation() for arguments [com.android.support:support-annotations:28.0.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. #2494
Comments
Hi @skroys |
Thanks for response @TahaTesser . But I already tried solution on stackoverflow but not working. |
@TahaTesser #0 throwToolExit (package:flutter_tools/src/base/common.dart:28:3) flutter doctor -v output: [√] Android toolchain - develop for Android devices (Android SDK version [√] Android Studio (version 3.6) [!] VS Code [!] Connected device ! Doctor found issues in 2 categories. |
Hi @skroys
To better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem |
Hi @TahaTesser flutter run --verbose log [ +34 ms] executing: [G:\programs\android\flutter] git -c log.showSignature=false log -n 1 --pretty=format:%H #0 throwToolExit (package:flutter_tools/src/base/common.dart:28:3) |
Hi @skroys |
Yes I migrated to androidx and it worked for me.
…On Mon, May 11, 2020, 8:25 PM Taha Tesser ***@***.***> wrote:
Hi @skroys <https://github.com/skroys>
Please migrate your project to Androidx using AndroidX Migration
<https://flutter.dev/docs/development/androidx-migration> and enable
Multidex <https://developer.android.com/studio/build/multidex>
and try again
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2494 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM37EH3MICXAZGNCLOC4JFDRRAGX5ANCNFSM4MZSAS6Q>
.
|
gradle.properties file:
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
EXPECTED Behavior
Project should build and run successfully
I tried all previous solution but nothing worked for me.
Please help to solve this issue is not same I searched
Thanks in advance.
The text was updated successfully, but these errors were encountered: