当前位置: 首页>>代码示例>>Java>>正文


Java AndroidSdkUtils.isAndroidSdkAvailable方法代码示例

本文整理汇总了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;
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:ConfigureAndroidProjectPath.java

示例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();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:NewProjectWizardDynamic.java

示例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));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:ConfigureAndroidModuleStep.java

示例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();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:37,代码来源:NewProjectWizard.java

示例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();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:NewModuleWizardDynamic.java

示例6: isInstalled

import org.jetbrains.android.sdk.AndroidSdkUtils; //导入方法依赖的package包/类
public boolean isInstalled() {
  return AndroidSdkUtils.isAndroidSdkAvailable();
}
 
开发者ID:pedrovgs,项目名称:AndroidWiFiADB,代码行数:4,代码来源:ADB.java


注:本文中的org.jetbrains.android.sdk.AndroidSdkUtils.isAndroidSdkAvailable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。