Use the proper URL for the google repository.
Also fix an NPE.
This commit is contained in:
@@ -72,7 +72,9 @@ public class AndroidVersion {
|
|||||||
|
|
||||||
public void saveProperties(Properties props) {
|
public void saveProperties(Properties props) {
|
||||||
props.setProperty(PROP_API_LEVEL, Integer.toString(mApiLevel));
|
props.setProperty(PROP_API_LEVEL, Integer.toString(mApiLevel));
|
||||||
props.setProperty(PROP_CODENAME, mCodename);
|
if (mCodename != null) {
|
||||||
|
props.setProperty(PROP_CODENAME, mCodename);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public class SdkRepository {
|
|||||||
|
|
||||||
/** The URL of the official Google sdk-repository site. */
|
/** The URL of the official Google sdk-repository site. */
|
||||||
public static final String URL_GOOGLE_SDK_REPO_SITE =
|
public static final String URL_GOOGLE_SDK_REPO_SITE =
|
||||||
"https://dl.google.com/android/repository/"; //$NON-NLS-1$
|
"https://dl-ssl.google.com/android/repository/"; //$NON-NLS-1$
|
||||||
|
|
||||||
public static final String URL_DEFAULT_XML_FILE = "repository.xml"; //$NON-NLS-1$
|
public static final String URL_DEFAULT_XML_FILE = "repository.xml"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user