April 07, 2018

Android and Java latest integration changes for AVDManager and SDKManager non-working issues

Hi all,

If you haven't used your Android skills in recent times with latest Java then, you might come across a situation where the SDK Manager and AVD Manager are not working.

Issue

SDK Manager and AVD Manager are not working.

Environment

Java 9 with Android SDK 23

Note

Though, I am able to perform development using Android Studio but when it come to update the SDK build tools and others, I was not able to update with SDK Manager.

Solution


  1. Now, Android SDK Manager have moved to sdk/tools/bin with filename sdkmanager.bat
  2. Edit the sdkmanager.bat file with any text editor
  3. Go to "@rem Execute sdkmanager" command
  4. Update the command with options: -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee 
  5. It should look like below after you add the arguments
    • @rem Execute sdkmanager
      "%JAVA_EXE%" %DEFAULT_JVM_OPTS% -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee %JAVA_OPTS% %SDKMANAGER_OPTS%  -classpath "%CLASSPATH%" com.android.sdklib.tool.sdkmanager.SdkManagerCli %CMD_LINE_ARGS%
  6. If you run android-sdk/tools/bin/sdkmanager.bat, it should be able to run

Note

There is nothing like platform-tools folder now in Android SDK.

So, make sure that you have specified ANDROID_HOME/SDK in your environment variables with your system/pc Android SDK folder

In PATH environment variable, you can specify %ANDROID_HOME%/tools/bin

Thanks for reading my blog. Feel free to post your comments below. Contact me on psrdotcom@gmail.com

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com