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
Android/Windows: sdkmanager --licenses
doesn't persist when run as non-administrator
#16065
Comments
Can you include the output of |
(this is the output of |
@cbracken suggests that this may be getting caused because you have two Android Studio installations -- Flutter detects one, and you accept licenses on another. Could that be the case? |
|
Thanks! One more 😄 -- can you run the following and attach the generated bug report ZIP file here? flutter doctor --bug-report --android-licenses |
Sure, thanks for your help. |
hi, @natem34 , yes flutter complains about this issue if you have first installed it or trying run your project for the first time on any android device, i think you could try and create an android project in AndroidStudio and accept all the licenses in AndroidStudio and then run the flutter doctor -v and see if this helps. if the framework still complains about not accepting licenses, you can run |
I think this is actually related to/duplicate of #16025. |
@Mahi-K, that a fact huh? Ok, I will try to create a new project from Android studio and see if I can accept the licenses from there. Seems weird that the instructions tell you to run flutter doctor during the setup, but doesn't say that it's cool to continue given certain errors. Oh well... I guess that's why it's in beta right? :) @Herohtar I'll check that out. I did do a search for the issue, my apologies if I missed duplicates. |
@natem34 strange - everything in the bug report looks like it behaved normally when you accepted the licenses (assuming you hit "y" when prompted). But you're saying that if you run it again, it prompts you again like it didn't record the acceptance the first time? |
@tvolkert I did hit "y" when prompted. And yes, you are correct. If I run it again (flutter doctor) it prompts me like I never accepted the licenses. |
@natem34 I wonder if we're not piping the Can you reproduce this by manually running the sdkmanager? C:\AndroidStudio\sdk\tools\bin\sdkmanager --licenses If you run that yourself and accept all the licenses... then run it again... does it still prompt you to accept the licenses again? (and if not, does flutter stop complaining?) |
Okay, that brings up an interesting point... and I may have messed up the troubleshooting of this. When I browsed to the location for the sdkmanager, I then went to file (from windows explorer) and opened powershell as administrator (just running on autopilot). I went through the steps and accepted all the licenses, then (from the same powershell window) ran flutter doctor. All is well now. What I don't know is this. Did it work because I followed your step and went through the sdkmanager, or did it work because of the elevated powershell. I can't recall if I was using an administrator cmd prompt before... but I'd wager a guess I wasn't. |
sdkmanager --licenses
doesn't persist when run as non-administrator
Chances are that you weren't using an administrator cmd prompt before, which meant that the process that the flutter tool spawned to run What's weird, though, is that the bug report you attached shows that the process acknowledged that you accepted all licenses and returned with a successful exit code, which can also be seen here:
So it would seem that when run as non-administrator, the In any case, I'm going to close this since you're no longer seeing it, so our ability to debug is diminished. |
Hello friends, I would like to know if you could solve this problem, I am currently installing flutter, but when running flutter doctor generates the following:
I have followed your instructions in this discussion and I am detained in the following:
I would appreciate your comments. |
look every thing is fine you just need to set the |
this is the best solution for this issue |
can someone tell me whats wrong with my
|
I search it every where but I found invalid replies. This is what worked well. |
|
My settings: When I run the command
When trying to run the command
bugreport_01 |
@iagofrota Exemplo: |
thanks a lot it helped me! |
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 |
When I run flutter doctor, "Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses" is the only thing it's cranky about. When I run the command, and hit "y" to accept each license and rerun flutter doctor, it still complains about the android licenses.
I posted the same thing on the Google groups for flutter, and it was suggested this is a bug and that I should post it here.
The text was updated successfully, but these errors were encountered: