I am trying to install Flutter without Android Studio and here is what I did:
C:\src
.C:\Android
.Now when I try to run sdkmanager
to install Android SDK, I get this error:
"Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli"
I have tried reinstalling Flutter sdk and the sdkmanager with no luck.
Here is Flutter Doctor's output:
sdkmanager error:
Open the sdkmanager.bat
in a text editor and add echo %CLASSPATH%
just below the CLASSPATH=%APP_HOME%\...\sdkmanager-classpath.jar
. Then run sdkmanager --help
which will echo the CLASSPATH of the required file. And check whether is it the valid path.
In my case, it was the wrong path,
It said my sdkmanger-classpath.jar
is in lib
folder. But it was not! It was actually inside the lib/_
folder. So as the simple solution what I did was copy the content in side lib/_
folder to lib
. Then it worked fine!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With