Repository navigation
Edit the 3.35 blog to warn users that abiFilters is now set in Flutter apps #174004
Copy link
Copy link
Closed
flutter/website
#12350Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listd: docs/flutter/flutter/docs, for contributorsflutter/flutter/docs, for contributorsfound in release: 3.33Found to occur in 3.33Found to occur in 3.33found in release: 3.35Found to occur in 3.35Found to occur in 3.35has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
Steps to reproduce
android {
...
defaultConfig {
...
ndk {
abiFilters.add("arm64-v8a")
}
}
}
Expected results
The abi should only include arm64_v8a.
Actual results
The output abi will still include "x86_64", "arm64_v8a" and "armeabi-v7a".
Code sample
Sample source code project:
https://github.com/angcyo/flutter_abi_filters_demo
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.35.1, on macOS 15.6 24G84 darwin-arm64, locale zh-Hans-CN) [310ms]
• Flutter version 3.35.1 on channel stable at /Users/angcyo/Library/Android/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 20f8274939 (4 天前), 2025-08-14 10:53:09 -0700
• Engine revision 1e9a811bf8
• Dart version 3.9.0
• DevTools version 2.48.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations,
enable-lldb-debugging
[!] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [1,120ms]
• Android SDK at /Users/angcyo/Library/Android/sdk
• Emulator version 36.2.4.0 (build_id 13899551) (CL:N/A)
• Platform android-36, build-tools 36.0.0
• Java binary at: /Applications/Android Studio Preview.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 16.4) [699ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16F6
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [80ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2025.1) [80ms]
• Android Studio at /Applications/Android Studio Beta.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)
[✓] Android Studio (version 2025.1.4) [79ms]
• Android Studio at /Applications/Android Studio Preview.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)
[✓] Android Studio (version 2024.3) [79ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.6+-13355223-b631.42)
[✓] Android Studio (version 2025.1) [79ms]
• Android Studio at /Users/angcyo/Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
[✓] IntelliJ IDEA Ultimate Edition (version 2025.2) [79ms]
• IntelliJ at /Users/angcyo/Applications/IntelliJ IDEA Ultimate.app
• Flutter plugin version 86.0.2
• Dart plugin version 252.24322.5
[✓] VS Code (version 1.103.1) [7ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.116.0
[✓] Connected device (3 available) [5.8s]
• Pixel 6 (mobile) • 1C151FDF60063X • android-arm64 • Android 16 (API 36)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.6 24G84 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 139.0.7258.128
! Error: Browsing on the local area network for angcyoo. Ensure the device is unlocked and attached with a cable or associated with the same local area
network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources [1,133ms]
• All expected network resources are available.
! Doctor found issues in 1 category.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listd: docs/flutter/flutter/docs, for contributorsflutter/flutter/docs, for contributorsfound in release: 3.33Found to occur in 3.33Found to occur in 3.33found in release: 3.35Found to occur in 3.35Found to occur in 3.35has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Activity
angcyo commentedon Aug 19, 2025
I saw it in the
FlutterPlugin.ktfile:amazed...
[Android] Fix abiFilters invalid to Flutter Gradle Plugin flutter#174004
[Android] Fix abiFilters invalid to Flutter Gradle Plugin flutter#174004
angcyo commentedon Aug 19, 2025
I found the submission record of this piece of code:
1c8ce95
temporary solution, modify the source code of the plugin directly:
PR:
#174008
darshankawar commentedon Aug 19, 2025
Thanks for the detailed report and analysis. I was able to replicate this on latest stable and master versions.
RaadShariat commentedon Aug 19, 2025
8 remaining items
komaxx commentedon Aug 20, 2025
Sorry, I'm confused what the solution is here.
We used to limit abis by just adding a line in gradle
Now, this is no longer working. Is there a new way to achieve the same without modifying the source code of the plugin?
angcyo commentedon Aug 20, 2025
Waiting for the new version of flutter.
or modify the source code of the flutter sdk
FlutterPlugin.ktfile in{flutter_sdk_path}/packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt.Copy the following code to replace this file:
komaxx commentedon Aug 20, 2025
@angcyo
Ok, thank you! It's a downgrade to a previous Flutter version for me then. Getting all developer machines plus CI servers patched is waaay too much of a hassle
angcyo commentedon Aug 20, 2025
Downgrading can also solve the problem.
reidbaker commentedon Aug 20, 2025
Setting abiFilters should still work (and does in our testing). The issue tracked here was the assumption that abiFilters was an empty list and that calling
addone time would result in an abi list of length 1. Now if you wish to control the list using add you must clear the list first which does not require a flutter change. Most importantly the default is now correct for most flutter apps.angcyo commentedon Aug 21, 2025
Here is a minimum verification problem project : https://github.com/angcyo/flutter_abi_filters_demo
amei714 commentedon Aug 21, 2025
ndk.abiFilters.clear()
ndk.abiFilters "armeabi-v7a", "arm64-v8a"
[Android] Add breaking changes page on default ABI filters (#12350)
gujintao1900 commentedon Aug 29, 2025
workaround move
ndkconfig fromdefaultConfigtobuildTypescamsim99 commentedon Sep 2, 2025
The page we published with the fix: https://docs.flutter.dev/release/breaking-changes/default-abi-filters-android
github-actions commentedon Sep 16, 2025
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 open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.