Package Details: flutter-target-linux 3.41.2-3

Git Clone URL: https://aur.archlinux.org/flutter.git (read-only, click to copy)
Package Base: flutter
Description: Flutter SDK component - linux target files
Upstream URL: https://flutter.dev
Keywords: android fuchsia ios mobile sdk
Licenses: custom, BSD, CCPL
Groups: flutter
Submitter: flipflop97
Maintainer: WithTheBraid
Last Packager: WithTheBraid
Votes: 151
Popularity: 0.019743
First Submitted: 2017-06-05 21:03 (UTC)
Last Updated: 2026-02-22 06:08 (UTC)

Sources (43)

Pinned Comments

WithTheBraid commented on 2025-11-11 10:15 (UTC)

This package is deprecated in favor of aur/flutter which now contains all required artifacts on its own. This PKGBUILD will be kept as is in order to ensure seamless builds of old Flutter version in future.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 28 Next › Last »

J21 commented on 2025-08-17 09:08 (UTC)

@J4UNE 10x sounds great so i just take everything else from this except flutter itself?

ahmet-cetinkaya commented on 2025-08-17 08:45 (UTC)

Use FVM (Flutter Version Manager) instead.

J21 commented on 2025-08-17 07:45 (UTC) (edited on 2025-08-17 07:50 (UTC) by J21)

I keep getting

 Execution failed for task ':gradle:compileKotlin'.
 > java.nio.file.NoSuchFileException: /usr/lib/flutter/packages/flutter_tools/gradle/.kotlin/sessions/kotlin-compiler-7863235143730812401.salive

The Kotlin session files in /usr/lib/flutter are corrupted but require root access to fix.

Fixed it using the comment below that said

Creating the folder /usr/lib/flutter/packages/flutter_tools/gradle/.kotlin and chowning it to my user worked just fine.

i.e.

  1. Create the missing directory: sudo mkdir -p /usr/lib/flutter/packages/flutter_tools/gradle/.kotlin
  2. Change ownership to your user: sudo chown -R $USER:$USER /usr/lib/flutter/packages/flutter_tools/gradle/.kotlin
  3. Set proper permissions: chmod 755 /usr/lib/flutter/packages/flutter_tools/gradle/.kotlin

carlosal1015 commented on 2025-07-07 04:15 (UTC)

I guess git is a missing makedependency.

Try `dart pub outdated` for more information.
Failed to find "git" in the search path.

An error was encountered when trying to run git.
Please ensure git is installed and available in your system's search path. See https://docs.flutter.dev/get-started/install for instructions on installing git for your platform.
==> ERROR: A failure occurred in build().
    Aborting...

fabcc commented on 2025-05-23 20:48 (UTC)

Since the latest update, I'm unable to upgrade or install it, it always tries to install the official https://archlinux.org/packages/extra/x86_64/dart/ (3.7.0) but it needs a 3.8.0 dart sdk. Which dart package provider should I choose (I tried all of them with aur/yay)

HBBrennan commented on 2025-04-08 22:53 (UTC) (edited on 2025-04-08 22:53 (UTC) by HBBrennan)

@Maxr1998 Where do you set kotlin.project.persistent.dir? I don't see a change when I run flutter build apk after setting it in android/gradle.properties.

Maxr1998 commented on 2025-03-02 01:24 (UTC)

I'm pretty sure the issue with the /usr/lib/flutter/packages/flutter_tools/gradle/.kotlin folder is due to flutter upgrading the Kotlin Gradle plugin from 1.8 to Kotlin 2+ and a change introduced in Kotlin 2.0. To fix this issue, the kotlin.project.persistent.dir has to be set somewhere.

ian-melo commented on 2025-02-28 03:10 (UTC)

@Kppqju77 Creating the folder /usr/lib/flutter/packages/flutter_tools/gradle/.kotlin and chowning it to my user worked just fine.

ian-melo commented on 2025-02-26 20:10 (UTC) (edited on 2025-02-27 18:15 (UTC) by ian-melo)

I failed to install aur/flutter-devel using aur/yay because there are conflicting install files with aur/flutter-tool package, mostly under /usr/lib/flutter/packages/flutter_tools/templates dir:

flutter-devel: /usr/lib/flutter/packages/flutter_tools/templates/xcode/ios/custom_application_bundle/Runner.xcworkspace.tmpl/xcshareddata/WorkspaceSettings.xcsettings already exists in filesystem

EDIT: not sure if exactly came from that package, so I deleted /usr/lib/flutter/packages/flutter_tools/templates and could proceed with the installation without issues.

WithTheBraid commented on 2025-02-21 08:29 (UTC)

@Kppqju77 I agree. So far, I already have the gradle-user-home.patch present. In past Flutter releases, setting

project.buildDir = file(project.gradle.gradleUserHomeDir.path + "/flutter/build")

as in the patch was sufficient. Sadly this no longer works with Flutter 3.29.0. I'm sadly a bit clueless. I'm open for patches and suggestions.

You can either submit patches here as diff or visually via https://gitlab.com/flutter-archlinux/tool .