Skip to content

Flutter tool throws Unresolved reference 'fileMode'. and 'fun String.toLowerCase(): String' is deprecated. Use lowercase() instead. while running on Android Studio Narwhal Canary and RC versions. #170791

@android-dev2015

Description

@android-dev2015

Steps to reproduce

Error:e: file:///D:/flutter/Android/flutter-sdk/flutter-sdk-beta/packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt:717:21 Unresolved reference 'fileMode'.

UpGradle Android Studio Narwhal Feature Drop | 2025.1.2 Canary 5 & flutter sdk to Flutter 3.33.0-0.2.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 1db45f7 (3 weeks ago) • 2025-05-29 10:05:06 -0700
Engine • revision 308a517 (4 weeks ago) • 2025-05-23 15:32:17 -0700
Tools • Dart 3.9.0 (build 3.9.0-100.2.beta) • DevTools 2.46.0

Expected results

no error

Actual results

Error:e: file:///D:/flutter/Android/flutter-sdk/flutter-sdk-beta/packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt:717:21 Unresolved reference 'fileMode'.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, 3.33.0-0.2.pre, on Microsoft Windows [版本 10.0.26100.4202], locale zh-CN)
[√] Windows Version (Windows 11 or higher, 24H2, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.13.7)
[√] Android Studio (version 2025.1.1)
[√] Android Studio (version 2025.1.2)
[√] Connected device (4 available)
[√] Network resources

• No issues found!

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listfound in release: 3.32Found to occur in 3.32found in release: 3.33Found to occur in 3.33has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versiont: gradle"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions