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

[tool] No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi #76393

Closed
ghost opened this issue Feb 19, 2021 · 38 comments
Labels
platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels. will need additional triage This issue or PR needs attention during weekly triage

Comments

@ghost
Copy link

ghost commented Feb 19, 2021

@kanamoto commented on Feb 19, 2021, 5:27 PM UTC:

Thanks for the feedback! If your issue is related to the Flutter framework itself,
please open an issue at
github.com/flutter/flutter.

Steps to Reproduce

I updated the Android SDK to the latest version
I built my flutter project.
The following error occurred.

I can build the iOS version, but only the Android version has the error.
I was able to build it just before.
I did a gradlew clean in the android directory under the flutter project, but it had no effect.

FAILURE: Build failed with an exception.

*   What went wrong:
    Execution failed for task ':app:stripDebugDebugSymbols'.

> No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

*   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](https://help.gradle.org)

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

Version info

doctor --verbose

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.6, on macOS 11.2.1 20D74 darwin-x64, locale ja-JP)
• Flutter version 1.22.6 at /Users/xxxxxxxxxxx/Library/Android/sdk
• Framework revision 9b2d32b605 (4 weeks ago), 2021-01-22 14:36:39 -0800
• Engine revision 2f0af37152
• Dart version 2.10.5

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/xxxxxxxxxxx/Library/Android/sdk
• Platform android-30, build-tools 29.0.2
• ANDROID_HOME = /Users/xxxxxxxxxxx/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1

[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin installed
• Dart plugin version 201.9317
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.53.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.19.0

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

This issue was moved by stevemessick from flutter/flutter-intellij#5274.

@iapicca
Copy link
Contributor

iapicca commented Feb 19, 2021

@kanamoto
can you provide your full flutter build apk --split-per-abi -v

@kanamoto
Copy link

kanamoto commented Feb 20, 2021

@iapicca
Thank you for your reply.
Here is the output result.

logs
> % flutter build apk --split-per-abi -v
[ +262 ms] executing: [/Users/xxxxxxxx/Develop/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +102 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] 9b2d32b605630f28625709ebd9d78ab3016b2bf6
[   +1 ms] executing: [/Users/xxxxxxxx/Develop/flutter/] git tag --points-at HEAD
[ +160 ms] Exit code 0 from: git tag --points-at HEAD
[        ] 1.22.6
[  +11 ms] executing: [/Users/xxxxxxxx/Develop/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +20 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/Users/xxxxxxxx/Develop/flutter/] git ls-remote --get-url origin
[  +11 ms] Exit code 0 from: git ls-remote --get-url origin
[   +7 ms] https://github.com/flutter/flutter.git
[ +142 ms] executing: [/Users/xxxxxxxx/Develop/flutter/] git rev-parse --abbrev-ref HEAD
[  +14 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] stable
[  +17 ms] executing: sw_vers -productName
[  +51 ms] Exit code 0 from: sw_vers -productName
[   +1 ms] macOS
[        ] executing: sw_vers -productVersion
[  +49 ms] Exit code 0 from: sw_vers -productVersion
[        ] 11.2.1
[        ] executing: sw_vers -buildVersion
[  +32 ms] Exit code 0 from: sw_vers -buildVersion
[   +1 ms] 20D74
[   +3 ms] executing: sysctl hw.optional.arm64
[  +17 ms] Exit code 1 from: sysctl hw.optional.arm64
[   +3 ms] sysctl: unknown oid 'hw.optional.arm64'
[ +116 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +54 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +8 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[  +11 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +5 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ +207 ms] Found plugin assets_audio_player at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/assets_audio_player-2.0.10/
[  +13 ms] Found plugin assets_audio_player_web at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/assets_audio_player_web-2.0.9+2/
[  +76 ms] Found plugin path_provider at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.22/
[   +6 ms] Found plugin path_provider_linux at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/
[   +6 ms] Found plugin path_provider_macos at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+4/
[  +10 ms] Found plugin path_provider_windows at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+1/
[  +45 ms] Found plugin sqflite at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.1+2/
[ +216 ms] Found plugin assets_audio_player at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/assets_audio_player-2.0.10/
[   +2 ms] Found plugin assets_audio_player_web at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/assets_audio_player_web-2.0.9+2/
[  +29 ms] Found plugin path_provider at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.22/
[   +5 ms] Found plugin path_provider_linux at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/
[   +5 ms] Found plugin path_provider_macos at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+4/
[   +4 ms] Found plugin path_provider_windows at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+1/
[  +13 ms] Found plugin sqflite at /Users/xxxxxxxx/Develop/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.1+2/
[  +89 ms] Generating /Users/xxxxxxxx/Develop/Projects/Flutter/project01/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +51 ms] executing: /usr/bin/xcodebuild -version
[+1525 ms] Exit code 0 from: /usr/bin/xcodebuild -version
[        ] Xcode 12.4
           Build version 12D4e
[ +115 ms] Running Gradle task 'assembleRelease'...
[   +3 ms] gradle.properties already sets `android.enableR8`
[  +17 ms] Using gradle from /Users/xxxxxxxx/Develop/Projects/Flutter/project01/android/gradlew.
[   +7 ms] /Users/xxxxxxxx/Develop/Projects/Flutter/project01/android/gradlew mode: 33261 rwxr-xr-x.
[+3512 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[  +20 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[   +1 ms] {"CFBundleName":"Android
Studio","JVMOptions":{"ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Content
s\/lib\/jdom.jar:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\/trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","MainClass":"com.inte
llij.idea.Main","Properties":{"idea.paths.selector":"AndroidStudio4.1","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.vendor.name":"Google","idea.home.path"
:"$APP_PACKAGE\/Contents"}},"NSDesktopFolderUsageDescription":"An application in Android Studio requests access to the user's Desktop
folder.","LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-201.8743.12.41.7042882","CFBundleDevelopmentRegion":"English","NSCameraUsageDescription":"An application in
Android Studio requests access to the device's camera.","CFBundleDocumentTypes":[{"CFBundleTypeName":"Android Studio Project
File","CFBundleTypeExtensions":["ipr"],"CFBundleTypeRole":"Editor","CFBundleTypeIconFile":"studio.icns"},{"CFBundleTypeName":"All
documents","CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"CFBundleTypeRole":"Editor","LSTypeIsPackage":false}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundleP
ackageType":"APPL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true,"CFBundleShortVersionString":"4.1","NSMicrophoneUsageDescription":"An application in Android
Studio requests access to the device's microphone.","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","NSLocationUsageDescription":"An application in Android
Studio requests access to the user's location
information.","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleTypeRole":"Editor","CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"]}],"CFBundleIdentifier":
"com.google.android.studio","LSApplicationCategoryType":"public.app-category.developer-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","NSDocumentsFolderUsageDescr
iption":"An application in Android Studio requests access to the user's Documents folder.","NSDownloadsFolderUsageDescription":"An application in Android Studio requests access to
the user's Downloads folder.","NSNetworkVolumesUsageDescription":"An application in Android Studio requests access to files on a network volume.","CFBundleGetInfoString":"Android
Studio 4.1, build AI-201.8743.12.41.7042882. Copyright JetBrains s.r.o., (c) 2000-2020","NSRemovableVolumesUsageDescription":"An application in Android Studio requests access to
files on a removable volume."}
[  +35 ms] executing: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[ +144 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[        ] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
           OpenJDK 64-Bit Server VM (build 25.242-b3-6915495, mixed mode)
[   +3 ms] executing: [/Users/xxxxxxxx/Develop/Projects/Flutter/project01/android/] /Users/xxxxxxxx/Develop/Projects/Flutter/project01/android/gradlew -Pverbose=true
-Ptarget-platform=android-arm,android-arm64,android-x64 -Ptarget=lib/main.dart -Ptrack-widget-creation=true -Psplit-per-abi=true -Pshrink=true -Ptree-shake-icons=true
assembleRelease
[+4136 ms] > Task :app:compileFlutterBuildRelease
[        ] [ +221 ms] executing: [/Users/xxxxxxxx/Develop/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +75 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [   +1 ms] 9b2d32b605630f28625709ebd9d78ab3016b2bf6
[        ] [   +1 ms] executing: [/Users/xxxxxxxx/Develop/flutter/] git tag --points-at HEAD
[        ] [  +64 ms] Exit code 0 from: git tag --points-at HEAD
[        ] [        ] 1.22.6
[        ] [  +10 ms] executing: [/Users/xxxxxxxx/Develop/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +8 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] [        ] origin/stable
[        ] [        ] executing: [/Users/xxxxxxxx/Develop/flutter/] git ls-remote --get-url origin
[        ] [   +7 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +54 ms] executing: [/Users/xxxxxxxx/Develop/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [  +10 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +58 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +14 ms] [   +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +12 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [ +119 ms] Initializing file store
[        ] [  +17 ms] Done initializing file store
[        ] [ +137 ms] Skipping target: gen_localizations
[ +635 ms] [+1274 ms] Skipping target: kernel_snapshot
[        ] [   +6 ms] invalidated build due to missing files: /Users/xxxxxxxx/Develop/Projects/Flutter/project01/DOES_NOT_EXIST_RERUN_FOR_WILDCARD1040492391
[ +104 ms] [ +133 ms] aot_android_asset_bundle: Starting due to {InvalidatedReason.inputMissing}
[ +393 ms] [ +397 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466.
[ +100 ms] [  +38 ms] Running command: /Users/xxxxxxxx/Develop/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/Users/xxxxxxxx/Develop/flutter/bin/cache/artifacts/engine/darwin-x64/const_finder.dart.snapshot --kernel-file
/Users/xxxxxxxx/Develop/Projects/Flutter/project01/.dart_tool/flutter_build/831a588d2c9c5b5cc8fea657127e99cc/app.dill --class-library-uri package:flutter/src/widgets/icon_data.dart
--class-name IconData
[ +498 ms] [ +544 ms] Skipping target: android_aot_release_android-x64
[        ] [   +6 ms] Skipping target: android_aot_release_android-arm64
[        ] [   +2 ms] Skipping target: android_aot_release_android-arm
[+1100 ms] [+1044 ms] Running font-subset: /Users/xxxxxxxx/Develop/flutter/bin/cache/artifacts/engine/darwin-x64/font-subset
/Users/xxxxxxxx/Develop/Projects/Flutter/project01/build/app/intermediates/flutter/release/flutter_assets/fonts/MaterialIcons-Regular.otf
/Users/xxxxxxxx/Develop/flutter/bin/cache/artifacts/material_fonts/MaterialIcons-Regular.otf, using codepoints 59828 59495 58791 58792 58974 59528 59526
[   +2 ms] [  +37 ms] aot_android_asset_bundle: Complete
[ +399 ms] [ +376 ms] Skipping target: android_aot_bundle_release_android-arm64
[        ] [        ] Skipping target: android_aot_bundle_release_android-x64
[        ] [   +4 ms] Skipping target: android_aot_bundle_release_android-arm
[        ] [        ] Skipping target: _composite
[        ] [        ] Persisting file store
[        ] [  +13 ms] Done persisting file store
[        ] [  +12 ms] build succeeded.
[        ] [  +19 ms] "flutter assemble" took 4,219ms.
[        ] [   +6 ms] ensureAnalyticsSent: 0ms
[        ] [   +2 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +296 ms] > Task :app:packLibsflutterBuildRelease UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:extractProguardFiles UP-TO-DATE
[        ] > Task :app:preReleaseBuild UP-TO-DATE
[        ] > Task :assets_audio_player:preBuild UP-TO-DATE
[        ] > Task :assets_audio_player:preReleaseBuild UP-TO-DATE
[        ] > Task :assets_audio_player_web:preBuild UP-TO-DATE
[        ] > Task :assets_audio_player_web:preReleaseBuild UP-TO-DATE
[        ] > Task :assets_audio_player_web:compileReleaseAidl NO-SOURCE
[        ] > Task :path_provider:preBuild UP-TO-DATE
[        ] > Task :path_provider:preReleaseBuild UP-TO-DATE
[        ] > Task :path_provider:compileReleaseAidl NO-SOURCE
[        ] > Task :assets_audio_player:compileReleaseAidl NO-SOURCE
[        ] > Task :sqflite:preBuild UP-TO-DATE
[        ] > Task :sqflite:preReleaseBuild UP-TO-DATE
[        ] > Task :sqflite:compileReleaseAidl NO-SOURCE
[        ] > Task :app:compileReleaseAidl NO-SOURCE
[        ] > Task :assets_audio_player:packageReleaseRenderscript NO-SOURCE
[   +1 ms] > Task :assets_audio_player_web:packageReleaseRenderscript NO-SOURCE
[        ] > Task :path_provider:packageReleaseRenderscript NO-SOURCE
[        ] > Task :sqflite:packageReleaseRenderscript NO-SOURCE
[  +93 ms] > Task :app:compileReleaseRenderscript NO-SOURCE
[        ] > Task :app:checkReleaseManifest UP-TO-DATE
[        ] > Task :app:generateReleaseBuildConfig UP-TO-DATE
[        ] > Task :app:cleanMergeReleaseAssets
[        ] > Task :app:mergeReleaseShaders UP-TO-DATE
[        ] > Task :app:compileReleaseShaders UP-TO-DATE
[        ] > Task :app:generateReleaseAssets UP-TO-DATE
[        ] > Task :assets_audio_player:mergeReleaseShaders UP-TO-DATE
[        ] > Task :assets_audio_player:compileReleaseShaders UP-TO-DATE
[   +1 ms] > Task :assets_audio_player:generateReleaseAssets UP-TO-DATE
[   +1 ms] > Task :assets_audio_player:packageReleaseAssets UP-TO-DATE
[        ] > Task :assets_audio_player_web:mergeReleaseShaders UP-TO-DATE
[        ] > Task :assets_audio_player_web:compileReleaseShaders UP-TO-DATE
[        ] > Task :assets_audio_player_web:generateReleaseAssets UP-TO-DATE
[        ] > Task :assets_audio_player_web:packageReleaseAssets UP-TO-DATE
[        ] > Task :path_provider:mergeReleaseShaders UP-TO-DATE
[        ] > Task :path_provider:compileReleaseShaders UP-TO-DATE
[        ] > Task :path_provider:generateReleaseAssets UP-TO-DATE
[        ] > Task :path_provider:packageReleaseAssets UP-TO-DATE
[        ] > Task :sqflite:mergeReleaseShaders UP-TO-DATE
[        ] > Task :sqflite:compileReleaseShaders UP-TO-DATE
[        ] > Task :sqflite:generateReleaseAssets UP-TO-DATE
[  +86 ms] > Task :sqflite:packageReleaseAssets UP-TO-DATE
[        ] > Task :app:mergeReleaseAssets
[ +100 ms] > Task :app:copyFlutterAssetsRelease
[        ] > Task :app:mainApkListPersistenceRelease UP-TO-DATE
[        ] > Task :app:generateReleaseResValues UP-TO-DATE
[        ] > Task :app:generateReleaseResources UP-TO-DATE
[        ] > Task :assets_audio_player:generateReleaseResValues UP-TO-DATE
[        ] > Task :assets_audio_player_web:compileReleaseRenderscript NO-SOURCE
[        ] > Task :assets_audio_player_web:generateReleaseResValues UP-TO-DATE
[        ] > Task :assets_audio_player_web:generateReleaseResources UP-TO-DATE
[        ] > Task :assets_audio_player_web:packageReleaseResources UP-TO-DATE
[        ] > Task :path_provider:compileReleaseRenderscript NO-SOURCE
[        ] > Task :assets_audio_player:compileReleaseRenderscript NO-SOURCE
[        ] > Task :assets_audio_player:generateReleaseResources UP-TO-DATE
[        ] > Task :assets_audio_player:packageReleaseResources UP-TO-DATE
[  +97 ms] > Task :path_provider:generateReleaseResValues UP-TO-DATE
[        ] > Task :path_provider:generateReleaseResources UP-TO-DATE
[        ] > Task :path_provider:packageReleaseResources UP-TO-DATE
[        ] > Task :sqflite:generateReleaseResValues UP-TO-DATE
[        ] > Task :sqflite:compileReleaseRenderscript NO-SOURCE
[        ] > Task :sqflite:generateReleaseResources UP-TO-DATE
[        ] > Task :sqflite:packageReleaseResources UP-TO-DATE
[  +97 ms] > Task :app:mergeReleaseResources UP-TO-DATE
[        ] > Task :app:createReleaseCompatibleScreenManifests UP-TO-DATE
[        ] > Task :assets_audio_player:checkReleaseManifest UP-TO-DATE
[        ] > Task :assets_audio_player:processReleaseManifest UP-TO-DATE
[        ] > Task :assets_audio_player_web:checkReleaseManifest UP-TO-DATE
[        ] > Task :assets_audio_player_web:processReleaseManifest UP-TO-DATE
[  +96 ms] > Task :path_provider:checkReleaseManifest UP-TO-DATE
[        ] > Task :path_provider:processReleaseManifest UP-TO-DATE
[        ] > Task :sqflite:checkReleaseManifest UP-TO-DATE
[        ] > Task :sqflite:processReleaseManifest UP-TO-DATE
[        ] > Task :app:processReleaseManifest UP-TO-DATE
[        ] > Task :assets_audio_player:parseReleaseLibraryResources UP-TO-DATE
[        ] > Task :assets_audio_player_web:parseReleaseLibraryResources UP-TO-DATE
[        ] > Task :assets_audio_player_web:generateReleaseRFile UP-TO-DATE
[        ] > Task :path_provider:parseReleaseLibraryResources UP-TO-DATE
[   +1 ms] > Task :path_provider:generateReleaseRFile UP-TO-DATE
[   +1 ms] > Task :assets_audio_player:generateReleaseRFile UP-TO-DATE
[        ] > Task :sqflite:parseReleaseLibraryResources UP-TO-DATE
[  +95 ms] > Task :sqflite:generateReleaseRFile UP-TO-DATE
[        ] > Task :app:processReleaseResources UP-TO-DATE
[   +1 ms] > Task :assets_audio_player:generateReleaseBuildConfig UP-TO-DATE
[        ] > Task :assets_audio_player_web:generateReleaseBuildConfig UP-TO-DATE
[  +94 ms] > Task :assets_audio_player_web:compileReleaseKotlin UP-TO-DATE
[        ] > Task :assets_audio_player_web:javaPreCompileRelease UP-TO-DATE
[   +1 ms] > Task :assets_audio_player_web:compileReleaseJavaWithJavac UP-TO-DATE
[        ] > Task :assets_audio_player_web:bundleLibCompileRelease UP-TO-DATE
[        ] > Task :path_provider:generateReleaseBuildConfig UP-TO-DATE
[        ] > Task :path_provider:javaPreCompileRelease UP-TO-DATE
[        ] > Task :path_provider:compileReleaseJavaWithJavac UP-TO-DATE
[        ] > Task :path_provider:bundleLibCompileRelease UP-TO-DATE
[  +94 ms] > Task :assets_audio_player:compileReleaseKotlin UP-TO-DATE
[        ] > Task :assets_audio_player:javaPreCompileRelease UP-TO-DATE
[   +1 ms] > Task :assets_audio_player:compileReleaseJavaWithJavac UP-TO-DATE
[   +1 ms] > Task :assets_audio_player:bundleLibCompileRelease UP-TO-DATE
[   +1 ms] > Task :sqflite:generateReleaseBuildConfig UP-TO-DATE
[   +2 ms] > Task :sqflite:javaPreCompileRelease UP-TO-DATE
[        ] > Task :sqflite:compileReleaseJavaWithJavac UP-TO-DATE
[        ] > Task :sqflite:bundleLibCompileRelease UP-TO-DATE
[        ] > Task :app:compileReleaseKotlin UP-TO-DATE
[        ] > Task :app:javaPreCompileRelease UP-TO-DATE
[        ] > Task :app:compileReleaseJavaWithJavac UP-TO-DATE
[  +13 ms] > Task :app:compileReleaseSources UP-TO-DATE
[  +77 ms] > Task :app:prepareLintJar UP-TO-DATE
[        ] > Task :assets_audio_player:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :assets_audio_player_web:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :path_provider:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :sqflite:prepareLintJarForPublish UP-TO-DATE
[   +1 ms] > Task :app:validateSigningRelease UP-TO-DATE
[        ] > Task :app:signingConfigWriterRelease UP-TO-DATE
[        ] > Task :app:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :assets_audio_player:processReleaseJavaRes NO-SOURCE
[ +100 ms] > Task :assets_audio_player:bundleLibResRelease UP-TO-DATE
[+3297 ms] > Task :app:lintVitalRelease
[        ] > Task :assets_audio_player:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :assets_audio_player:mergeReleaseNativeLibs UP-TO-DATE
[        ] > Task :assets_audio_player:stripReleaseDebugSymbols UP-TO-DATE
[        ] > Task :assets_audio_player:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
[        ] > Task :assets_audio_player_web:processReleaseJavaRes NO-SOURCE
[        ] > Task :assets_audio_player_web:bundleLibResRelease UP-TO-DATE
[        ] > Task :assets_audio_player_web:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :assets_audio_player_web:mergeReleaseNativeLibs UP-TO-DATE
[        ] > Task :assets_audio_player_web:stripReleaseDebugSymbols UP-TO-DATE
[        ] > Task :assets_audio_player_web:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
[        ] > Task :path_provider:processReleaseJavaRes NO-SOURCE
[   +3 ms] > Task :path_provider:bundleLibResRelease UP-TO-DATE
[        ] > Task :path_provider:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :path_provider:mergeReleaseNativeLibs UP-TO-DATE
[        ] > Task :path_provider:stripReleaseDebugSymbols UP-TO-DATE
[   +1 ms] > Task :path_provider:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
[        ] > Task :sqflite:processReleaseJavaRes NO-SOURCE
[        ] > Task :sqflite:bundleLibResRelease UP-TO-DATE
[        ] > Task :sqflite:mergeReleaseJniLibFolders UP-TO-DATE
[        ] > Task :sqflite:mergeReleaseNativeLibs UP-TO-DATE
[        ] > Task :sqflite:stripReleaseDebugSymbols UP-TO-DATE
[        ] > Task :sqflite:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
[        ] > Task :app:mergeReleaseNativeLibs UP-TO-DATE
[        ] > Task :app:stripReleaseDebugSymbols FAILED
[        ] 104 actionable tasks: 6 executed, 98 up-to-date
[   +1 ms] FAILURE: Build failed with an exception.
[   +3 ms] * What went wrong:
[        ] Execution failed for task ':app:stripReleaseDebugSymbols'.
[   +2 ms] > No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi
[        ] * 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 11s
[ +583 ms] Running Gradle task 'assembleRelease'... (completed in 16.4s)
[  +17 ms] "flutter apk" took 19,041ms.
[  +23 ms] Gradle task assembleRelease failed with exit code 1
[   +1 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
           #1      buildGradleApp (package:flutter_tools/src/android/gradle.dart:416:7)
           #2      _rootRunUnary (dart:async/zone.dart:1198:47)
           #3      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #4      _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
           #5      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
           #6      Future._propagateToListeners (dart:async/future_impl.dart:725:32)
           #7      Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #8      _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
           #9      _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
           #10     _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart)
           #11     _rootRunUnary (dart:async/zone.dart:1198:47)
           #12     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #13     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
           #14     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
           #15     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
           #16     Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #17     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
           #18     _rootRun (dart:async/zone.dart:1190:13)
           #19     _CustomZone.run (dart:async/zone.dart:1093:19)
           #20     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #21     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
           #22     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
           #23     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
           #24     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
           #25     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
>           
>           
>[ +295 ms] ensureAnalyticsSent: 260ms
[  +10 ms] Running shutdown hooks
[  +11 ms] Shutdown hooks complete
[  +11 ms] exiting with code 1

@AlexSensey
Copy link

Screenshot 2021-02-21 010205

@kanamoto
Copy link

Thank you, @AlexSensey.
I tried as you told me, but it didn't work.

I set up a new flutter in a different environment and tried to build it. It worked.
However, in my original environment, I tried to redeploy Flutter, but it failed with the same build error.
I guess my environment might have been corrupted by the update.

@TahaTesser TahaTesser added the in triage Presently being triaged by the triage team label Feb 22, 2021
@TahaTesser
Copy link
Member

TahaTesser commented Feb 22, 2021

Hi @kanamoto
Make sure you've NDK (side by side) installed in your SDK manager, perhaps it might solve this
Glad you resolved the issue in a different environment
Given your last message I feel safe to close this issue, if you disagree please write in the comments and I will reopen it.
Thank you

@TahaTesser TahaTesser added the r: invalid Issue is closed as not valid label Feb 22, 2021
@kanamoto
Copy link

Hi @TahaTesser
The NDK environment looked fine as far as I could see. I decided that there was no problem there.

I removed all Android Studio and Android SDK from my environment and started a new environment.
Now I am able to build.

I agree to close the ticket.

Thank you all very much.

@werainkhatri
Copy link
Member

werainkhatri commented Feb 23, 2021

Hi @kanamoto
Make sure you've NDK (side by side) installed in your SDK manager, perhaps it might solve this
Glad you resolved the issue in a different environment
Given your last message I feel safe to close this issue, if you disagree please write in the comments and I will reopen it.
Thank you

Installing an older NDK version (20.*.* or lower) from android studio seems to solve the problem. Higher versions don't solve the issue.

Screenshot from 2021-02-23 14-22-16

@kanamoto
Copy link

Hi @werainkhatri
If I get the same error, I will definitely give this a try. Thanks.

@kodi
Copy link

kodi commented Feb 23, 2021

Same, couple days ago it all just stopped working.
Downgrading NDK to version 20.1.xxxxx made build & debug working again (also fastlane local build works again now)

@TahaTesser TahaTesser reopened this Feb 26, 2021
@TahaTesser TahaTesser removed in triage Presently being triaged by the triage team r: invalid Issue is closed as not valid labels Feb 26, 2021
@TahaTesser TahaTesser changed the title No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi [tool] No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi Feb 26, 2021
@TahaTesser TahaTesser added passed first triage platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels. will need additional triage This issue or PR needs attention during weekly triage labels Feb 26, 2021
@TahaTesser
Copy link
Member

TahaTesser commented Feb 26, 2021

Looks like this error is falsely thrown even in a new project #76695
This issue needs additional triage

@loalexzzzz
Copy link

same issue, same error, will fix it soon?

@meomunm
Copy link

meomunm commented Mar 2, 2021

Hi @kanamoto
Make sure you've NDK (side by side) installed in your SDK manager, perhaps it might solve this
Glad you resolved the issue in a different environment
Given your last message I feel safe to close this issue, if you disagree please write in the comments and I will reopen it.
Thank you

Installing an older NDK version (20.. or lower) from android studio seems to solve the problem. Higher versions don't solve the issue.

Screenshot from 2021-02-23 14-22-16

it's works for me

@achourali
Copy link

i had to uncheck hide obselete packages and uninstall all NDK higher than 20.1.**** to fix this issue .

@samsunga50
Copy link

downgrading the sdk version to 20 ish or less works. what a waste of time

@Hixie
Copy link
Contributor

Hixie commented Mar 3, 2021

What are the steps to reproduce this? Does it reproduce with a basic flutter create foo app, so long as you have a recent NDK?

@Llennpie
Copy link

Llennpie commented Mar 3, 2021

Same issue, same error. NDK 20.1.5948944 fixes it for me.
image

@TahaTesser
Copy link
Member

Hi @Hixie
> No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi error is thrown when users have NDK 22 or multiple NDK version installed (seemingly), only solutions to be uninstalling other and keeping 20.1, NDK isn't required for a simple new project, there seems to be something wrong with this requirement.

At first, it looked like NDK was enabled and the error was thrown but #76695 shows a new app also giving this error which is quite odd. I attempted to reproduce this multiple times in a project, the app never failed to run with NDK 22.

I was hoping somebody from the team would know why that error is thrown
Thank you

logs
PS C:\Users\Taha\AndroidStudioProjects\stable_flutter> flutters build apk --split-per-abi -v
[ +112 ms] executing: [C:\Users\Taha\Code\flutter_stable/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +51 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 9b2d32b605630f28625709ebd9d78ab3016b2bf6
[        ] executing: [C:\Users\Taha\Code\flutter_stable/] git tag --points-at HEAD
[  +34 ms] Exit code 0 from: git tag --points-at HEAD
[        ] 1.22.6
[  +10 ms] executing: [C:\Users\Taha\Code\flutter_stable/] git rev-parse --abbrev-ref --symbolic @{u}
[  +28 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\Users\Taha\Code\flutter_stable/] git ls-remote --get-url origin
[  +24 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +55 ms] executing: [C:\Users\Taha\Code\flutter_stable/] git rev-parse --abbrev-ref HEAD
[  +33 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +42 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +27 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[  +16 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +21 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[  +10 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +7 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[  +14 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +2 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +14 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ +171 ms] Generating
C:\Users\Taha\AndroidStudioProjects\stable_flutter\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java 
[  +68 ms] Running Gradle task 'assembleRelease'...
[   +2 ms] set `android.enableR8=true` in gradle.properties
[   +7 ms] Using gradle from C:\Users\Taha\AndroidStudioProjects\stable_flutter\android\gradlew.bat.
[   +4 ms] C:\Users\Taha\AndroidStudioProjects\stable_flutter\android\gradlew.bat mode: 33279 rwxrwxrwx.
[  +11 ms] executing: C:\Users\Taha\Code\android-studio\jre\bin\java -version
[  +80 ms] Exit code 0 from: C:\Users\Taha\Code\android-studio\jre\bin\java -version
[   +1 ms] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
           OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[   +8 ms] executing: [C:\Users\Taha\AndroidStudioProjects\stable_flutter\android/]
C:\Users\Taha\AndroidStudioProjects\stable_flutter\android\gradlew.bat -Pverbose=true
-Ptarget-platform=android-arm,android-arm64,android-x64 -Ptarget=lib\main.dart -Ptrack-widget-creation=true
-Psplit-per-abi=true -Pshrink=true -Ptree-shake-icons=true assembleRelease
[+2770 ms] Starting a Gradle Daemon (subsequent builds will be faster)
[+14801 ms] > Task :app:compileFlutterBuildRelease
[   +1 ms] [ +111 ms] executing: [C:\Users\Taha\Code\flutter_stable/] git -c log.showSignature=false log -n 1
--pretty=format:%H
[   +2 ms] [  +56 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] [        ] 9b2d32b605630f28625709ebd9d78ab3016b2bf6
[   +1 ms] [        ] executing: [C:\Users\Taha\Code\flutter_stable/] git tag --points-at HEAD
[        ] [  +37 ms] Exit code 0 from: git tag --points-at HEAD
[        ] [        ] 1.22.6
[        ] [   +7 ms] executing: [C:\Users\Taha\Code\flutter_stable/] git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] [  +28 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[   +1 ms] [        ] executing: [C:\Users\Taha\Code\flutter_stable/] git ls-remote --get-url origin
[        ] [  +26 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] [        ] https://github.com/flutter/flutter.git
[        ] [  +52 ms] executing: [C:\Users\Taha\Code\flutter_stable/] git rev-parse --abbrev-ref HEAD
[  +20 ms] [  +30 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] [        ] stable
[        ] [  +28 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[  +26 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[  +18 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +12 ms] [  +11 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[  +11 ms] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[   +8 ms] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[  +23 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[  +27 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +8 ms] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[  +13 ms] [  +61 ms] Initializing file store
[   +9 ms] [  +25 ms] Skipping target: gen_localizations
[        ] [  +20 ms] kernel_snapshot: Starting due to {}
[   +1 ms] [  +20 ms] C:\Users\Taha\Code\flutter_stable\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\Taha\Code\flutter_stable\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\Taha\Code\flutter_stable\bin\cache\artifacts\engine\common\flutter_patched_sdk_product/ --target=flutter
-Ddart.developer.causal_async_stacks=false -Ddart.vm.profile=false -Ddart.vm.product=true --bytecode-options=source-positions  
--aot --tfa --packages C:\Users\Taha\AndroidStudioProjects\stable_flutter\.packages --output-dill
C:\Users\Taha\AndroidStudioProjects\stable_flutter\.dart_tool\flutter_build\b9b699c36e3ff3246410da4fbadcb993\app.dill --depfileC:\Users\Taha\AndroidStudioProjects\stable_flutter\.dart_tool\flutter_build\b9b699c36e3ff3246410da4fbadcb993\kernel_snapshot.d 
package:stable_flutter/main.dart
[+7772 ms] [+8891 ms] kernel_snapshot: Complete
[ +488 ms] [ +464 ms] aot_android_asset_bundle: Starting due to {}
[ +202 ms] [ +165 ms] android_aot_release_android-arm: Starting due to {InvalidatedReason.inputChanged}
[   +1 ms] [   +6 ms] executing:
C:\Users\Taha\Code\flutter_stable\bin\cache\artifacts\engine\android-arm-release\windows-x64\gen_snapshot --deterministic      
--snapshot_kind=app-aot-elf
--elf=C:\Users\Taha\AndroidStudioProjects\stable_flutter\.dart_tool\flutter_build\b9b699c36e3ff3246410da4fbadcb993\armeabi-v7a\app.so --strip --no-sim-use-hardfp --no-use-integer-division --no-causal-async-stacks --lazy-async-stacks
C:\Users\Taha\AndroidStudioProjects\stable_flutter\.dart_tool\flutter_build\b9b699c36e3ff3246410da4fbadcb993\app.dill
[  +12 ms] [   +1 ms] android_aot_release_android-arm64: Starting due to {InvalidatedReason.inputChanged}
[   +1 ms] [   +2 ms] executing:
C:\Users\Taha\Code\flutter_stable\bin\cache\artifacts\engine\android-arm64-release\windows-x64\gen_snapshot --deterministic    
--snapshot_kind=app-aot-elf
--elf=C:\Users\Taha\AndroidStudioProjects\stable_flutter\.dart_tool\flutter_build\b9b699c36e3ff3246410da4fbadcb993\arm64-v8a\app.so --strip --no-causal-async-stacks --lazy-async-stacks
C:\Users\Taha\AndroidStudioProjects\stable_flutter\.dart_tool\flutter_build\b9b699c36e3ff3246410da4fbadcb993\app.dill
[  +10 ms] [   +1 ms] android_aot_release_android-x64: Starting due to {InvalidatedReason.inputChanged}
[   +1 ms] [   +1 ms] executing:
C:\Users\Taha\Code\flutter_stable\bin\cache\artifacts\engine\android-x64-release\windows-x64\gen_snapshot --deterministic      
--snapshot_kind=app-aot-elf
--elf=C:\Users\Taha\AndroidStudioProjects\stable_flutter\.dart_tool\flutter_build\b9b699c36e3ff3246410da4fbadcb993\x86_64\app.so --strip --no-causal-async-stacks --lazy-async-stacks
C:\Users\Taha\AndroidStudioProjects\stable_flutter\.dart_tool\flutter_build\b9b699c36e3ff3246410da4fbadcb993\app.dill
[ +271 ms] [ +314 ms] Running command: C:\Users\Taha\Code\flutter_stable\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\Taha\Code\flutter_stable\bin\cache\artifacts\engine\windows-x64\const_finder.dart.snapshot --kernel-file
C:\Users\Taha\AndroidStudioProjects\stable_flutter\.dart_tool\flutter_build\b9b699c36e3ff3246410da4fbadcb993\app.dill
--class-library-uri package:flutter/src/widgets/icon_data.dart --class-name IconData
[ +504 ms] [ +526 ms] Running font-subset:
C:\Users\Taha\Code\flutter_stable\bin\cache\artifacts\engine\windows-x64\font-subset.exe
C:\Users\Taha\AndroidStudioProjects\stable_flutter\build\app\intermediates\flutter\release\flutter_assets\fonts/MaterialIcons-Regular.otf C:\Users\Taha\Code\flutter_stable\bin\cache\artifacts\material_fonts\MaterialIcons-Regular.otf, using codepoints    
59828 59495 58791 58792 58974 58727
[  +93 ms] [  +76 ms] aot_android_asset_bundle: Complete
[+4703 ms] [+4687 ms] android_aot_release_android-arm: Complete
[   +1 ms] [  +37 ms] android_aot_bundle_release_android-arm: Starting due to {InvalidatedReason.inputChanged}
[  +11 ms] [   +6 ms] android_aot_bundle_release_android-arm: Complete
[  +96 ms] [  +94 ms] android_aot_release_android-arm64: Complete
[  +92 ms] [  +36 ms] android_aot_bundle_release_android-arm64: Starting due to {InvalidatedReason.inputChanged}
[   +1 ms] [   +3 ms] android_aot_bundle_release_android-arm64: Complete
[   +1 ms] [        ] android_aot_release_android-x64: Complete
[   +8 ms] [  +59 ms] android_aot_bundle_release_android-x64: Starting due to {InvalidatedReason.inputChanged}
[   +1 ms] [   +3 ms] android_aot_bundle_release_android-x64: Complete
[  +80 ms] [  +40 ms] _composite: Starting due to {}
[   +1 ms] [        ] _composite: Complete
[   +1 ms] [   +2 ms] Persisting file store
[   +8 ms] [  +12 ms] Done persisting file store
[        ] [  +12 ms] build succeeded.
[   +1 ms] [  +14 ms] "flutter assemble" took 15,614ms.
[        ] [   +2 ms] ensureAnalyticsSent: 0ms
[        ] [   +1 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +797 ms] > Task :app:packLibsflutterBuildRelease
[   +1 ms] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:extractProguardFiles
[   +7 ms] > Task :app:preReleaseBuild
[   +1 ms] > Task :app:compileReleaseAidl NO-SOURCE
[   +2 ms] > Task :app:checkReleaseManifest
[  +13 ms] > Task :app:compileReleaseRenderscript NO-SOURCE
[   +7 ms] > Task :app:generateReleaseBuildConfig
[  +59 ms] > Task :app:cleanMergeReleaseAssets UP-TO-DATE
[   +1 ms] > Task :app:mergeReleaseShaders
[   +1 ms] > Task :app:compileReleaseShaders
[   +9 ms] > Task :app:generateReleaseAssets
[   +1 ms] > Task :app:mergeReleaseAssets
[  +79 ms] > Task :app:copyFlutterAssetsRelease
[   +1 ms] > Task :app:mainApkListPersistenceRelease
[   +1 ms] > Task :app:generateReleaseResValues
[   +4 ms] > Task :app:generateReleaseResources
[ +903 ms] > Task :app:createReleaseCompatibleScreenManifests
[ +390 ms] > Task :app:processReleaseManifest
[+1101 ms] > Task :app:mergeReleaseResources
[ +509 ms] > Task :app:prepareLintJar
[   +1 ms] > Task :app:validateSigningRelease
[   +9 ms] > Task :app:signingConfigWriterRelease
[  +85 ms] > Task :app:mergeReleaseJniLibFolders
[ +691 ms] > Task :app:processReleaseResources
[+4709 ms] > Task :app:compileReleaseKotlin
[ +895 ms] > Task :app:mergeReleaseNativeLibs
[ +408 ms] > Task :app:stripReleaseDebugSymbols
[   +1 ms] > Task :app:javaPreCompileRelease
[+1989 ms] > Task :app:compileReleaseJavaWithJavac
[   +1 ms] > Task :app:compileReleaseSources
[+4302 ms] > Task :app:lintVitalRelease
[ +106 ms] > Task :app:mergeReleaseGeneratedProguardFiles
[   +1 ms] > Task :app:processReleaseJavaRes NO-SOURCE
[+1692 ms] > Task :app:mergeReleaseJavaResource
[+4898 ms] > Task :app:transformClassesAndResourcesWithR8ForRelease
[ +394 ms] > Task :app:transformClassesAndDexWithShrinkResForRelease
[        ] Removed unused resources: Binary resource data reduced from 46KB to 36KB: Removed 20%
[        ] Removed unused resources: Binary resource data reduced from 46KB to 36KB: Removed 20%
[        ] Removed unused resources: Binary resource data reduced from 46KB to 36KB: Removed 20%
[+3798 ms] > Task :app:packageRelease
[ +106 ms] > Task :app:assembleRelease
[   +1 ms] BUILD SUCCESSFUL in 1m 0s
[   +1 ms] 32 actionable tasks: 31 executed, 1 up-to-date
[ +600 ms] Running Gradle task 'assembleRelease'... (completed in 60.9s)
[  +13 ms] calculateSha: LocalDirectory:
'C:\Users\Taha\AndroidStudioProjects\stable_flutter\build\app\outputs\flutter-apk'/app.apk
[   +5 ms] calculateSha: reading file took 2us
[  +81 ms] calculateSha: computing sha took 80us
[  +10 ms] √ Built build\app\outputs\flutter-apk\app-armeabi-v7a-release.apk (5.2MB).
[   +3 ms] "flutter apk" took 61,392ms.
[ +159 ms] ensureAnalyticsSent: 154ms
[   +2 ms] Running shutdown hooks
[   +1 ms] Shutdown hooks complete
[   +1 ms] exiting with code 0
PS C:\Users\Taha\AndroidStudioProjects\stable_flutter>

@kodi @kanamoto
Any way to reproduce this would be really helpful
Thank you

@kanamoto
Copy link

kanamoto commented Mar 3, 2021

My first broken environment had NDK 23.0.7123448 in it.
After that, the other environment I used to check the build does not contain NDK.
The environment I am using now also does not contain NDK.

Then, I added NDK 23.0.7123448rc1 for testing.
As a result... I got the same error!

After that, I removed the NDK from the Android Studio SDK Manager,
As a result... I got a error another one.

D8: Cannot fit requested classes in a single dex file (# methods: 68200 > 65536)
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
The number of method references in a .dex file cannot exceed 64K.

After that, I removed the NDK and install NDK 20.1.5948944.
As a result... I did not recover. I kept getting the DEX error I mentioned above....

I'm going to do a clean install again.

NDK is not compatible with the recent Flutter?

"I suppose it's a bit too early for a close." me said. ;-)

@Hixie
Copy link
Contributor

Hixie commented Mar 5, 2021

How does one install an NDK in such a way that it affects Flutter? Is it from Android Studio?

@kanamoto
Copy link

kanamoto commented Mar 5, 2021

HI @Hixie
In my case, I always installed the NDK from the Android Studio SDK Manager.

@TahaTesser
Copy link
Member

@kanamoto

D8: Cannot fit requested classes in a single dex file (# methods: 68200 > 65536)
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
The number of method references in a .dex file cannot exceed 64K.

That is a multi dex issue, enable multi dex in your app

@kanamoto
Copy link

kanamoto commented Mar 5, 2021

@TahaTesser
As for the DEX error, I was able to avoid it with the following settings. Thanks!

defaultConfig { ...
...
multiDexEnabled true
}

However, this error did not occur before I installed NDK, which is strange.

@xster
Copy link
Member

xster commented Mar 10, 2021

I'm tentatively calling this the same issue as #53657 (with some Linux twist to it).

Please try the proposed solution and see if it solves it ===> #53657 (comment)

If not, please feel free to re-open this issue. But please add the following details since the reports above are a bit of a mix and match of different parts from different people.

1- Output of flutter build apk -v
2- Output of flutter doctor -v
3- Your /android/build.gradle file (please remove PIIs)
4- Your /android/app/build.gradle file (please remove PIIs)
5- A screenshot of your SDK manager's SDK Tools tab. Please select "Show Package Details" and expand the NDK (Side by Side) node.

@apzentral
Copy link

I observed the same error when I used NDK version 23.0.7123448 , once I downgrade to version 22.0.7026061. It now works.
Flutter 2.0.2

@stereo-type
Copy link

NDK 20.1.5948944 fix this for me. Thanks a LOT!!!!

@ultraon
Copy link

ultraon commented Apr 5, 2021

I've resolved that by selecting <project root>/android, press F4 (show project structure: File/New Project Settings/Default Project Structure), select SDK Location section, click on Download under Android NDK location. It downloaded for me version android_sdk/ndk/22.0.7026061. Then click on Save or Apply. If it rejects saving, then open <project root>/android/local.properties and add the line ndk.dir=<path to downloaded ndk dir>.
After that, it works well.

@acuedd
Copy link

acuedd commented Apr 10, 2021

NDK 20.1.5948944 fix this for me. Thanks a LOT!!!!

x2, works for me too

@michaelVictoriaDev
Copy link

NDK 20.1.5948944 fix this for me. Thanks a LOT!!!!

x3, works for me too

@umitmutluu
Copy link

You should in android=>gradle=>Build gradle
and you should change com.android.tools.build:gradle 4.1.0 like this
after android=>gradle=> wrapper=> gradle wrapper properties
and change distribution Url end of gradle-6.8.3-all.zip

@othenos
Copy link

othenos commented May 10, 2021

@umitmutlurize Thanks this worked for me whereas changing the NDK version did not.

@umitmutluu
Copy link

@umitmutlurize Thanks this worked for me whereas changing the NDK version did not.

It doesn't matter It's my pleasure

@esoinila
Copy link

esoinila commented Jun 3, 2021

In my case what helped was just creating a new Flutter project and copying the only dart file (Flutter tutorial) into it from the problem-project. Also added the ? and required to get it to compile ( MyHomePage({Key? key, required this.title}) : super(key: key); ).

@joerazor626
Copy link

I think this happens when your project runs on an older version of NDK - Side by Side (System Settings->Android SDK->SDK tools Tab). In my case, I remove all NDK versions and kept NDK 20.0.5594570. In other words, downgrade the NDK version.

@ILAgent
Copy link

ILAgent commented Jun 28, 2021

@umitmutlurize your solution works, thank you!

@umitmutluu
Copy link

@umitmutlurize your solution works, thank you!

it's my pleasure other people downloaded all of versions of ndk nut sometimes it doesn't work like that

@umitmutluu
Copy link

@umitmutlurize Thanks this worked for me whereas changing the NDK version did not.

it's my pleasure bro have fun

@camroga
Copy link

camroga commented Jun 30, 2021

NDK 20.1.5948944 fix this for me. Thanks a LOT!!!!

x4, works for me too

@github-actions
Copy link

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 -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels. will need additional triage This issue or PR needs attention during weekly triage
Projects
None yet
Development

No branches or pull requests