0

Support for Android x86 targets will be removed in the next stable release after 3.27. See https://github.com/flutter/flutter/issues/157543 for details. You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':app_links'.

Failed to notify project evaluation listener. Could not get unknown property 'android' for project ':app_links' of type org.gradle.api.Project. Could not get unknown property 'android' for project ':app_links' of type org.gradle.api.Project.

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

When I am building the flutter app I am getting this error but when I use flutter 3.27.1 I am getting this error but in other laptop it is working sometimes good

1 Answer 1

0

Try add this line in android/build.grdale :

plugins {
    id 'com.google.android.gms.strict-version-matcher-plugin' version '1.2.0' // Use latest version
}

Delete the android/.gradle folder (to clear cached builds), also clear flutter.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.