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

[deeplink] Path of my flutter project is not recognized #7747

Open
sbatezat opened this issue May 13, 2024 · 9 comments
Open

[deeplink] Path of my flutter project is not recognized #7747

sbatezat opened this issue May 13, 2024 · 9 comments
Labels
bug Something isn't working deep links page Issues related to the Deep Links tool

Comments

@sbatezat
Copy link

I'm trying to debug deep links as per this documentation https://docs.google.com/document/d/1fnWe8EpZleMtSmP0rFm2iulqS3-gA86z8u9IsnXjJak

It's asked to enter the path of the local project, but it seems my project cannot be well scanned. I'm always having the error dialog "You selected a non Flutter project".

My path looks like this
/Users/USERNAME/dev/MyApp

What's wrong?


DevTools version: 2.31.1
IDE: VSCode
Connected Device:
CPU / OS: arm64 (64 bit) android
Connected app type: Flutter native (debug build)
Dart Version: 3.3.4
Flutter Version: 3.19.6 / stable
Framework / Engine: 54e66469a9 / c4cd48e186

@sbatezat
Copy link
Author

sbatezat commented May 15, 2024

I've just upgraded my Flutter SDK from 3.19.6 to 3.22.0 and so my DevTools is now 2.34.3.
The problem is still there (my project path appears on the new combo box, but when I click on the "validate deep links" button, a popup still claims this is not a Flutter project)

@kenzieschmoll
Copy link
Member

@chunhtai @hangyujin

@kenzieschmoll kenzieschmoll added deep links page Issues related to the Deep Links tool bug Something isn't working labels May 15, 2024
@hangyujin
Copy link
Contributor

hangyujin commented May 16, 2024

Hi @sbatezat , to help me understand the bug better

  1. Are you using the devtool in a browser or in vscode/android studio? If you have a screenshot , it will be helpful.
  2. Are other functions in the devtool working properly for this app? For example, inspector, memory

@sbatezat
Copy link
Author

Hi @hangyujin

  1. The information is on the issue, I'm using VSCode. However, I've tested it on a Chrome browser and the result is the same.
  2. Others functions are working properly

I can't see how screenshot can help, but here it is :-)

image

@CoderDake
Copy link
Contributor

@sbatezat are you using windows? there is currently a bug that looks similar to what you are seeing.

@sbatezat
Copy link
Author

sbatezat commented May 21, 2024

@sbatezat are you using windows? there is currently a bug that looks similar to what you are seeing.

@CoderDake No, I'm not targetting Windows and I'm working on macOS

@hpelitebook745G2
Copy link

i'm also getting this issue, any updates?

@hangyujin
Copy link
Contributor

hangyujin commented May 29, 2024

#7767 @chunhtai just merged a PR to show more error messages if the path is not recognized. It will help this issue.
It can happen due to many reasons, maybe the devtool server is not running, maybe the analyze command failed.

@hangyujin
Copy link
Contributor

hangyujin commented May 29, 2024

Can you run the command "flutter analyze --android --list-build-variants" in terminal under your project path (for example: "/Users/USERNAME/dev/MyApp") to see if it can successfully get build variants?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deep links page Issues related to the Deep Links tool
Projects
None yet
Development

No branches or pull requests

5 participants