SDK Manager Broken After Mavericks Update

After upgrading my MacBook to Mavericks, I admitted that the SDK manager no longer works correctly. When I click on the down arrow to release the contents of the folders, the manager has some problems with the redrawing (pictures) ... I could live with it, but it was no longer possible to install new packages ...

Does anyone know how to fix this?

Since the SDK Manager is written in Java, this should be a JRE (?) Problem.

Android SDK Manager Window - buggy

[edit]

I checked if this problem really occurs on my iMac and it does (independently). Anyone else?

+6
source share
4 answers

I believe the problem is with Java version 7. I have java 7 on my Mavericks OS and I see the same problems. Then I looked at the android executable (which was a bash script) and put set -ex on top of it. Thus, I saw that the exact command was being executed:

 /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java -Xmx256M -XstartOnFirstThread -Dcom.android.sdkmanager.toolsdir=/android/android-platform-v1-1/sdk/tools -classpath /android/android-platform-v1-1/sdk/tools/lib/sdkmanager.jar:/android/android-platform-v1-1/sdk/tools/lib/swtmenubar.jar:/android/android-platform-v1-1/sdk/tools/lib/x86_64/swt.jar com.android.sdkmanager.Main update sdk 

So, I just replaced java with the java version for 1.6.0, which is in my installation: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java and the Android SDK Manager works unexpectedly!

See relevant report.

0
source

I had the same problem. It resolved after I installed the latest version of JDK 7 for Mac from Oracle (7u45), available at:

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

+1
source

The Android emulator works fine with Java 6. You can force it to use this version by creating a script:

 #!/bin/sh export JAVA_HOME=`/usr/libexec/java_home -v 1.6` exec "PATH_TO_ADT_BUNDLE/sdk/tools/android" $* &>/dev/null & 

Change PATH_TO_ADT_BUNDLE to where you have the adt-bundle-mac-... directory.

Unfortunately, it does not work correctly with Java 7, which has existed for a long time, but for now you can use a workaround.

+1
source

Still need help? There is a way to make it work without changing anything, although this is a pain in the butt.

As soon as the Android SDK manager appears, you will see that at the bottom of the window there are a lot of changes (xml update, etc.) ...

What you want to do is quickly scroll down to the desired flag and click on it BEFORE the SDK manager finishes sampling its data. You will notice that after the manager finishes updating himself, your mailbox will remain on! (if you try to check the box after the manager receives your data, you will not be able to check these fields). At this point, you can click the small arrow to expand the section that you marked, and from here you can further refine the specific elements that you want to set for this section. Of course, this method implies that you may need to restart the SDK manager for each partition that you want to install.

As for the redraw problem ... if you quickly scroll to the end of the window and then go back to where you were, you will notice that this causes the window to redraw (and display updated data).

-I understand that this is not a true β€œfix”, but it’s an IS way to use the SDK manager. I hope I helped, and I am sorry if my use of the section of words does not make sense.

0
source

Source: https://habr.com/ru/post/956603/


All Articles