Make ADT use new sdklib API
This fixes the build.
This commit is contained in:
@@ -36,6 +36,7 @@ import com.android.ide.eclipse.adt.internal.sdk.Sdk;
|
||||
import com.android.ide.eclipse.adt.internal.wizards.actions.AvdManagerAction;
|
||||
import com.android.prefs.AndroidLocation.AndroidLocationException;
|
||||
import com.android.sdklib.IAndroidTarget;
|
||||
import com.android.sdklib.NullSdkLog;
|
||||
import com.android.sdklib.SdkManager;
|
||||
import com.android.sdklib.internal.avd.AvdManager;
|
||||
import com.android.sdklib.internal.avd.AvdManager.AvdInfo;
|
||||
@@ -301,7 +302,7 @@ public final class AndroidLaunchController implements IDebugBridgeChangeListener
|
||||
|
||||
// reload the AVDs to make sure we are up to date
|
||||
try {
|
||||
avdManager.reloadAvds();
|
||||
avdManager.reloadAvds(NullSdkLog.getLogger());
|
||||
} catch (AndroidLocationException e1) {
|
||||
// this happens if the AVD Manager failed to find the folder in which the AVDs are
|
||||
// stored. This is unlikely to happen, but if it does, we should force to go manual
|
||||
|
||||
@@ -23,6 +23,7 @@ import com.android.ide.eclipse.adt.internal.sdk.Sdk;
|
||||
import com.android.ide.eclipse.ddms.DdmsPlugin;
|
||||
import com.android.prefs.AndroidLocation.AndroidLocationException;
|
||||
import com.android.sdklib.IAndroidTarget;
|
||||
import com.android.sdklib.NullSdkLog;
|
||||
import com.android.sdklib.internal.avd.AvdManager;
|
||||
import com.android.sdklib.internal.avd.AvdManager.AvdInfo;
|
||||
import com.android.sdkuilib.internal.widgets.AvdSelector;
|
||||
@@ -133,7 +134,7 @@ public class EmulatorConfigTab extends AbstractLaunchConfigurationTab {
|
||||
|
||||
// reload the AVDs to make sure we are up to date
|
||||
try {
|
||||
Sdk.getCurrent().getAvdManager().reloadAvds();
|
||||
Sdk.getCurrent().getAvdManager().reloadAvds(NullSdkLog.getLogger());
|
||||
} catch (AndroidLocationException e1) {
|
||||
// this happens if the AVD Manager failed to find the folder in which the AVDs are
|
||||
// stored. There isn't much we can do at this point.
|
||||
|
||||
Reference in New Issue
Block a user