Skip to content

New -> Dart File -> Template not found: Dart File #8079

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

Open
CalmLuo opened this issue Apr 17, 2025 · 17 comments
Open

New -> Dart File -> Template not found: Dart File #8079

CalmLuo opened this issue Apr 17, 2025 · 17 comments

Comments

@CalmLuo
Copy link

CalmLuo commented Apr 17, 2025

Android Studio Meerkat | 2024.3.1 Patch
Flutter plugin 85.2.3

Image

@akshaybabloo
Copy link

I reported it here - https://youtrack.jetbrains.com/issue/IDEA-371045 - seems to be an issue with them.

@zonanapo
Copy link

I’m encountering the same issue

@fatihnlci
Copy link

fatihnlci commented Apr 18, 2025

I faced the same issue after the latest Dart update. The workaround was to copy and paste any dart file.

@ErenKrkl
Copy link

An error that came after the last dart update. Copying and pasting another dart file is the solution for a temporary solution. An error that needs to be fixed

@zhuganz
Copy link

zhuganz commented Apr 18, 2025

I rolled back to a previous version.
https://plugins.jetbrains.com/plugin/6351-dart/versions

@Diyor331
Copy link

Diyor331 commented Apr 18, 2025

The same error

Try "new file" ->

Image

@jasperfernandez
Copy link

After update this happened

@ydolzhenko
Copy link

Jeez. Same here.

@alexander-doroshko
Copy link
Contributor

Sorry about the problem.

The Dart plugin updates with the fix have been published (plugin versions 243.26753.1 and 251.25267.1).

Please comment if there are any issues with the new plugin builds

@ErenKrkl
Copy link

ErenKrkl commented Apr 18, 2025

It seems to be solved with the latest update for 243.26753.1. I have no idea for 251.25267.1.

IDE version: Android Studio Meerkat | 2024.3.1 Patch 1

@RobinDevrath
Copy link

Android Studio: File → Settings (Preferences on macOS) → Editor → File and Code Templates

Under the Files tab, check if a Dart File template exists.
If it’s missing - Click on '+' to add a new template.
Create new template = Name it: Dart File
add basic code = void main() {}

then apply and ok now you can create dart file

@akshaybabloo
Copy link

Fixed in latest dart plugin

@zonanapo
Copy link

I faced the same exception, and I upgraded to the beta version, and it's working fine now. Android Studio Narwhal | 2025.1.1 Nightly 2025-04-18

No, you just need to upgrade the Dart plugin to the latest version.

@azharbinanwar
Copy link

I faced the same exception, and I upgraded to the beta version, and it's working fine now. Android Studio Narwhal | 2025.1.1 Nightly 2025-04-18

No, you just need to upgrade the Dart plugin to the latest version.

Thanks @zonanapo it working 😊

@zhao004
Copy link

zhao004 commented Apr 26, 2025

Same problem.

Image

Image

Image

@zonanapo
Copy link

Same problem.

Image

Image

Image

Try these 2 versions, it was released last week

Image

@starmingle
Copy link

To solve this issue you need to update your dart and flutter plugin. Also check if flutter sdk path is set correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

15 participants