-
Notifications
You must be signed in to change notification settings - Fork 28.5k
✗ Android license status unknown. #16025
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
Comments
To add some info only - Android's |
Similar issues here, but minus the crash. Fairly trivial app still runs.
|
I'm not getting any crashes and my app still runs, but
|
Me too, i have tried installing Android sdk 27.0.3 |
Hi everyone, accept all the licenses review. now check flutter again with |
Trying @Zedonboy's suggestion gave me some more problems...
|
@Herohtar - See my reply above. Did that workaround not work? |
Android Studio stuff doesn't like Java 9 for whatever reason, simply install and export Java 8 OpenJDK and then rerun, worked for me.
|
flutter doctor --android-licenses
Warning: java.net.ConnectException: Connection timed out (Connection timed out)
Warning: Failed to download any source lists! Fetch remote repository...
Warning: File /home/users/n.gendron/.android/repositories.cfg could not be loaded.
All SDK package licenses accepted.======] 100% Computing updates... flutter doctor -v
[✓] Flutter (Channel beta, v0.2.3, on Linux, locale en_CA.UTF-8)
• Flutter version 0.2.3 at /home/users/n.gendron/GitHub/flutter
• Framework revision 5a58b36e36 (2 weeks ago), 2018-03-13 13:20:13 -0700
• Engine revision e61bb9ac3a
• Dart version 2.0.0-dev.35.flutter-290c576264
[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /opt/android-sdk/
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /opt/android-sdk/
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
✗ Android license status unknown.
[✓] Android Studio (version 3.1)
• Android Studio at /opt/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] Connected devices (1 available)
• Nexus 5 • 05473ea90a673764 • android-arm • Android 7.1.2 (API 25)
! Doctor found issues in 1 category. |
I set the JAVA_HOME with the JRE in the Android studio and then flutter doctor --android-licenses just worked. For me, the JRE path was C:\Program Files\Android\Android Studio\jre |
@Herohtar - if you modify the tools you need to also clear the build tools snapshot to rebuild them otherwise that one line change wont do anything. If you read the link I posted the workaround is to use the On a mac it would be:
This should solve the Alternatively, that link offers other suggestions. If you find out that the solution is different, report back. The link again in case you missed it: https://stackoverflow.com/questions/47150410/failed-to-run-sdkmanager-list-android-sdk-with-java-9. |
@lukef The above env var worked for me. Many thanks for this. |
@lukef Ah, thanks. It works with your change after deleting the flutter tools snapshot. |
i had the same problem. tried all of the above but didn't fix it. what i did is: went to Environment variables and added ANDROID_HOME with a variable value of: Then I went to
Then i ran:
Then i ran This solved my problems. hope it helps you. |
Fix was reverted because it introduced other problems. Re-opening. |
FYI, the other problems that it introduced are detailed in #16228 |
i have this same issue, i tried
and sdkmanager --update give me this warning
i checked that path there no file named repositories.cfg flutter doctor -v
|
Got the same issue, I've tried to create an empty repositories.cfg file but Android license status unknown. still remain. Ref: https://stackoverflow.com/questions/43433542/stuck-at-android-repositories-cfg-could-not-be-loaded |
Here is how I fixed this issue #16280 on my Mac :-) |
I encountered this problem on MacOS just now, it turned out to be a lack of JDK. Here is my solution:
then run command |
@tvolkert - sorry for the late reply. I have a valid I thought the flag would be ignored by Java 8 and below (I think this is a java 9+ flag). Sorry about that. With that said, I feel like there may be an inherent danger in solving this problem via code as, ultimately, the fix belongs in the Android tooling and not in Flutter. Maybe this is a documentation issue instead. The overall workarounds available now are:
It's annoying to ask people to add yet another environment variable, so I could see that as being unacceptable, but it will fix the issue. Otherwise, we could attempt to detect the installed Java version and apply the flag conditionally. This is probably super hard across all platforms to do it consistently. |
i have both Java 8 and 9 installed in my computer |
@lukef we already have code that tries to validate the Java version, so that ship's already sailed:
You could refactor that such that we had a |
This worked for me |
I had the same issue, and it was solved when I downgraded java from java 13 to java 8. |
in terminal set java 1.8 home path
try
DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Accept? (y/N): y |
In order to fix this, I uninstalled JDK 13 that I had installed earlier, then :
Hope this helps... ^_^ |
I am just starting up with all these things. |
update android sdk in android studio... It worked for me. because if you updated your flutter, it needs also the updated version of the sdk. for the environment to work properly |
RESOLVED , Microsoft Windows [Version 10.0.17763.973] C:\Users\karmadi>flutter doctor Doctor summary (to see all details, run flutter doctor -v): [!] Android toolchain - develop for Android devices (Android SDK version 29.0.2) ! Doctor found issues in 2 categories. C:\Users\karmadi>flutter doctor --android-licenses C:\Users\karmadi>flutter doctor [√] Android toolchain - develop for Android devices (Android SDK version 29.0.2) ! Doctor found issues in 1 category. |
I use sdkman I can run $ sdk install java 8.0.242.j9-adpt
Downloading: java 8.0.242.j9-adpt
In progress...
############################################################################################################### 100.0%############################################################################################################### 100.0%
Repackaging Java 8.0.242.j9-adpt...
Done repackaging...
Installing: java 8.0.242.j9-adpt
Done installing!
Do you want java 8.0.242.j9-adpt to be set as default? (Y/n):
Setting java 8.0.242.j9-adpt as default. |
@NatoBoram I think locking this ticket is better if there is no need for it for the future. |
Just run CMD as admin |
I have accepted all the licences and suddenly they are 'forgotten'..... Doctor summary (to see all details, run flutter doctor -v): flutter doctor --android-licenses flutter doctor --android-licenses -v #0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3) sdkmanager --update in a flutter app sdkmanager --update in an android app This is really a serious problem |
unfortunately it is not the case... |
@benedicte69 Have you read through this thread and tried any solutions? Specifically, have you tried the solution listed here? |
THANK YOU!!!!!!! |
Congrats and many thanks @GuilhermeEsdras ! That is the most update answer I have read until now! For sure Gradlew will not complain about any bad JAVA_HOME that way. |
please help me out... $ flutter doctor -v [!] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [√] Android Studio (version 3.6) [√] VS Code (version 1.43.0) [!] Connected device ! Doctor found issues in 2 categories. |
I have the same issue. Just open android studio and get the sdk manager installed. |
If you want to fix this problem then simply download Android Studio 3.5.2 from this link Download Android Studio 3.5.3 and then install it after removing the android studio that you have installed in your system. After installing it open it and do the same as you do with other android studio versions means install all the SDKs and just open cmd and hit Thanks! |
For those who are still facing the issue and if you have android studio installed then
for more detailed answer please see this answer https://stackoverflow.com/a/60705505/8253662 hope this helps |
But I have android studio version 3.6
…On Mon 16 Mar, 2020, 5:29 PM Mahesh Jamdade, ***@***.***> wrote:
If nothing worked for you I would reommend you to follow this answer
https://stackoverflow.com/a/60705505/8253662 hope this helps
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#16025 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK7YA2CMUDIHJNR4CQTP2KTRHYIBTANCNFSM4EX3IR2Q>
.
|
Now D:\flutter\bin>C:\Users\sunuw\AppData\Local\Android\sdk\tools\bin\sdkmanager --update With --install (optional), installs or updates packages.
With --update, all installed packages are updated to the latest version. With --list, all installed and available packages are printed out. With --licenses, show and offer the option to accept licenses for all With --version, prints the current version of sdkmanager. Common Arguments:
|
I'm using this solution but looks like flutter still looking for android/tools directory can somebody elaborate? |
Android SDK Manager Tool is missing from new android studio build. !!! |
Go to Tools -> SDK Manager -> SDK Tools |
Just download CLI tools from developers site. And cut paste into sdk manager folder. And update your path and restart the system.. every thing will be fine. 🙂
Sent from Outlook Mobile<https://aka.ms/blhgte>
…________________________________
From: Levent Karakaş <notifications@github.com>
Sent: Friday, April 10, 2020 2:56:43 AM
To: flutter/flutter <flutter@noreply.github.com>
Cc: ibini <thisisibini@outlook.com>; Comment <comment@noreply.github.com>
Subject: Re: [flutter/flutter] ✗ Android license status unknown. (#16025)
Android SDK Manager Tool is missing from new android studio build. !!!
Go to Tools -> SDK Manager -> SDK Tools
Select & install SDK Tools
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fflutter%2Fflutter%2Fissues%2F16025%23issuecomment-611760484&data=02%7C01%7C%7C3eddcd888dc747ec0a5808d7dcccb3b8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637220644054715340&sdata=xETn0jgohGz0SgAiwgqWWUzegoqMxcNm6p%2FHsJre080%3D&reserved=0>, or unsubscribe<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJRW4S5LK6QRCEDO2CUU22DRLY4RHANCNFSM4EX3IR2Q&data=02%7C01%7C%7C3eddcd888dc747ec0a5808d7dcccb3b8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637220644054715340&sdata=TzISgosVl7pf4cfxpGrTlOXuBYlfJ0szFchL8hYC5Uc%3D&reserved=0>.
|
Unsubscribe... |
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 |
Steps to Reproduce
flutter upgrade
.What went wrong
What should happen
There shouldn't be a problem. The build from last week did not output a problem, and this week's build shouldn't output a problem.
What I tried to fix the problem
sudo chown -R $USER:$USER /opt/*
flutter doctor --android-licenses
Logs
The app then opens in the device and immediately crashes.
Oh, what happened the last two days?
Flutter Doctor
Edit : Oh hey, I forgot to add some info about my system. It should probably be noted somewhere in the template to add it.
java -version openjdk version "1.8.0_151" OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12) OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
Edit : Most people stumbling here had a different problem from the one I had, and its solution is here.
The text was updated successfully, but these errors were encountered: