flutter doctor --android-licenses
Error: Could not find or load main class home.Documents..dependencies.android-sdk.cmdline-tools.latest
Caused by: java.lang.ClassNotFoundException: home/Documents//dependencies/android-sdk/cmdline-tools/latest
and it's there! I've checked it, the folder exists
Have enabled command-line tools?
You do this by going into android studio and going to More Actions/SDK Manger/SDK Tools and select command-line tools then click install.
Hope this helps :)
Related
I have a problem with the application that I am trying to compile, the system generates the .apk for me, but it does not manually install the application on the device that I am debugging
The console gives me the following message:
Could not locate aapt. Please ensure you have the Android buildtools installed.
Exception: Problem building Android application: see above error(s).
Exited (sigterm)
I'm new to flutter I don't know what it could be, someone help me please, I'll be grateful
I know that there are a ton of solutions on Stack Overflow for this issue but none of them is working for me.
I downloaded the Android SDK using Homebrew and set the path to the SDK using this command: flutter config --android-sdk /usr/local/Caskroom/android-sdk and I got this output:
Setting "android-sdk" value to "/usr/local/Caskroom/android-sdk".
You may need to restart any open editors for them to read new settings.
Now, when I run flutter doctor --android-licenses, I get this error:
Unable to locate Android SDK.
I've tried almost all the solutions on Stack Overflow. What can I try next?
I have started with the setup of flutter updated version and am a total beginner in this platform. This is the error I have been getting. Could you please help me?
You have to install Android SDK Command-line Tools (in SDK Manager).
After Installing, accept the android licensces (in CMD)
flutter doctor --android-licenses
Either install Android Studio to get the required dependecies or download an android sdkmanager and check its path (path/to/sdkmanager should be the path to that).
To avoid any problems for beginners, I would just install Android Studio here, set it up until it installs the android sdk, then switch to Flutter: that was the only way to fix this since some time ago if I remember correctly
Please first run this command
flutter doctor --android-licenses
then follow this link : Android/Sdk is missing a Tools folder, meaing no sdkmanager, meaning "Android license status unknown" error
Good day Guys, i'm new on flutter & I wan set up flutter and the android SDK(without using android studio) on my device but when i run flutter doctor --android-licenses command i get this error after running the command
(/home/olaneat/android/Sdk/tools/bin/sdkmanager).
Try re-installing or updating your Android SDK,
visit https://flutter.dev/docs/get-started/install/linux#android-setup for
detailed instructions.
this is how i configured my path
ANDROID_HOME="$PATH:/home/olaneat/android/Sdk"
export PATH="$PATH:/home/olaneat/android/Sdk/platform-tools"
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
export PATH="$JAVA_HOME/bin:$ANDROID_HOME/cmdline-tools/tools/bin:$ANDROID_HOME/platform-tools:SPATH"
and i have my SDK already installed
can anyone help out?
Update cmdline-tools direcotry
Try changing the path name cmdline-tools/tools to cmdline-tools/latest. I was facing the same problem and found that the directory patern has been updated.
I am a flutter beginer, while installing the android license by command "flutter --android-licenses", I have gotten the exception as follows:
Failed to create settings
Exception in thread "main" java.lang.IllegalArgumentException: port out of range:-1
at java.base/java.net.InetSocketAddress.checkPort(InetSocketAddress.java:153)
at java.base/java.net.InetSocketAddress.<init>(InetSocketAddress.java:198)
at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.createAddress(SdkManagerCliSettings.java:177)
at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.<init>(SdkManagerCliSettings.java:485)
at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.createSettings(SdkManagerCliSettings.java:152)
at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.createSettings(SdkManagerCliSettings.java:134)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:58)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:49)
I try to search solution a lot of, but I have no result. So could everyone help me?
Many thanks!
Try my answer here hope its help to you
Or Try below steps:
Open Tools > SDK Manager
From the left choose, Appearance & Behavior > System Settings > Android SDK
Select SDK Tools from the top menu
Check Android SDK Command-line tools and click 'apply'.