本文整理汇总了Java中org.jetbrains.android.sdk.AndroidSdkUtils.isAndroidSdkAvailable方法的典型用法代码示例。如果您正苦于以下问题:Java AndroidSdkUtils.isAndroidSdkAvailable方法的具体用法?Java AndroidSdkUtils.isAndroidSdkAvailable怎么用?Java AndroidSdkUtils.isAndroidSdkAvailable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jetbrains.android.sdk.AndroidSdkUtils
的用法示例。
在下文中一共展示了AndroidSdkUtils.isAndroidSdkAvailable方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: validate
import org.jetbrains.android.sdk.AndroidSdkUtils; //导入方法依赖的package包/类
@Override
public boolean validate() {
if (!AndroidSdkUtils.isAndroidSdkAvailable() || !TemplateManager.templatesAreValid()) {
setErrorHtml("<html>Your Android SDK is missing, out of date, or is missing templates. " +
"Please ensure you are using SDK version " + VersionCheck.MIN_TOOLS_REV + " or later.<br>" +
"You can configure your SDK via <b>Configure | Project Defaults | Project Structure | SDKs</b></html>");
return false;
} else {
return true;
}
}
示例2: init
import org.jetbrains.android.sdk.AndroidSdkUtils; //导入方法依赖的package包/类
@Override
public void init() {
if (!AndroidSdkUtils.isAndroidSdkAvailable() || !TemplateManager.templatesAreValid()) {
String title = "SDK problem";
String msg = "<html>Your Android SDK is missing, out of date, or is missing templates.<br>" +
"You can configure your SDK via <b>Configure | Project Defaults | Project Structure | SDKs</b></html>";
Messages.showErrorDialog(msg, title);
return;
}
addPaths();
initState();
super.init();
}
示例3: updateStep
import org.jetbrains.android.sdk.AndroidSdkUtils; //导入方法依赖的package包/类
@Override
public void updateStep() {
if (!myInitializing && AndroidSdkUtils.isAndroidSdkAvailable()) {
myInitializing = true;
initialize();
myInitialized = true;
}
myCreateCustomLauncherIconCheckBox.setVisible(!myTemplateState.myHidden.contains(ATTR_CREATE_ICONS));
}
示例4: init
import org.jetbrains.android.sdk.AndroidSdkUtils; //导入方法依赖的package包/类
@Override
protected void init() {
if (!AndroidSdkUtils.isAndroidSdkAvailable() || !TemplateManager.templatesAreValid()) {
String title = "SDK problem";
String msg =
"<html>Your Android SDK is missing, out of date, or is missing templates. Please ensure you are using SDK version " +
VersionCheck.MIN_TOOLS_REV + " or later.<br>" +
"You can configure your SDK via <b>Configure | Project Defaults | Project Structure | SDKs</b></html>";
super.init();
Messages.showErrorDialog(msg, title);
throw new IllegalStateException(msg);
}
myWizardState = new NewProjectWizardState();
Template.convertApisToInt(myWizardState.getParameters());
myWizardState.put(TemplateMetadata.ATTR_GRADLE_VERSION, GRADLE_LATEST_VERSION);
myWizardState.put(TemplateMetadata.ATTR_GRADLE_PLUGIN_VERSION, GRADLE_PLUGIN_RECOMMENDED_VERSION);
myWizardState.put(TemplateMetadata.ATTR_PER_MODULE_REPOS, false);
myConfigureAndroidModuleStep = new ConfigureAndroidModuleStep(myWizardState, myProject, NewProjectSidePanel, this);
myConfigureAndroidModuleStep.updateStep();
myAssetSetStep = new RasterAssetSetStep(myWizardState, myProject, null, NewProjectSidePanel, this, null);
Disposer.register(getDisposable(), myAssetSetStep);
myAssetGenerator = new AssetStudioAssetGenerator(myWizardState);
myAssetSetStep.finalizeAssetType(AssetStudioAssetGenerator.AssetType.LAUNCHER);
myChooseActivityStep =
new TemplateGalleryStep(myWizardState.getActivityTemplateState(), CATEGORY_ACTIVITIES, myProject, null, NewProjectSidePanel, this, null);
myActivityParameterStep = new TemplateParameterStep(myWizardState.getActivityTemplateState(), myProject, null, NewProjectSidePanel, this);
mySteps.add(myConfigureAndroidModuleStep);
mySteps.add(myAssetSetStep);
mySteps.add(myChooseActivityStep);
mySteps.add(myActivityParameterStep);
myInitializationComplete = true;
super.init();
}
示例5: init
import org.jetbrains.android.sdk.AndroidSdkUtils; //导入方法依赖的package包/类
@Override
public void init() {
if (!AndroidSdkUtils.isAndroidSdkAvailable() || !TemplateManager.templatesAreValid()) {
String title = "SDK problem";
String msg = "<html>Your Android SDK is missing, out of date, or is missing templates.<br>" +
"You can configure your SDK via <b>Configure | Project Defaults | Project Structure | SDKs</b></html>";
Messages.showErrorDialog(msg, title);
return;
}
addPaths();
ConfigureAndroidProjectPath.putSdkDependentParams(getState());
initState();
super.init();
}
示例6: isInstalled
import org.jetbrains.android.sdk.AndroidSdkUtils; //导入方法依赖的package包/类
public boolean isInstalled() {
return AndroidSdkUtils.isAndroidSdkAvailable();
}