1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

KotlinでAndroidアプリを開発(プロジェクト作成編)

Posted at

検証環境

この記事の内容は、以下の環境で検証しました。

  • Java:open jdk 1.8.0_152
  • Android Studio 3.0 Beta 2
  • CompileSdkVersion:26
  • MinSdkVersion:19
  • TargetSdkVersion:26
  • BuildToolsVersion:26.0.1

AndroidStudioPreview3.0について

今回使用するAndroid Studio 3.0の新機能を簡単に説明する

特徴

  • Core IDE changes
    ベースのIntelliJを 2016年2月 ~ 2017年1月2日に変更

  • Kotlin language
    Kotlinをプラグインなしでサポート

  • Support for Java 8 language features
    Java8をサポート

  • New Android Profiler
    アプリのプロファイルをリアルタイムで確認可能

  • Instant Apps support
    モジュール作成に「Instant App modules」と「Feature modules」を追加

  • APK Debugger
    Android StudioでAPKをビルドすることなく、APKをプロファイルしてデバッグすることが可能

  • New Device File Explorer
    Android Studio本体にファイルエクスプローラーを追加

  • Support for the Android O Developer Preview
    Android Oに対応

  • New templates for Android Things
    Androidで実現するIOTのテンプレートが追加

  • Layout Editor improvements
    レイアウトエディターの以下を改善
    ・コンポーネントツリーのドラッグアンドドロップ
    ・エラーパネルの追加
    ・新たなビューの対応
    ・chain creationの改善

  • Layout Inspector improvements
    デバッグ時のLayout Inspector の改善

  • Google's Maven repository
    Maven repositoryにGoogleを追加

  • APK Analyzer improvements
    APKの解析を向上
    詳細は以下を参照
    https://developer.android.com/studio/preview/features/index.html#apk_analyzer_improvements

  • New Android Plugin for Gradle
    Gradleのプラグインを更新。処理速度を向上

  • New Android Emulator features
    エミュレータに新しい機能を追加
    詳細は以下を参照
    https://developer.android.com/studio/preview/features/index.html#new_android_emulator_features

プロジェクト作成手順

前提としてAndroid Studio 3.x、SDKが正常にインストールされているものとする

  1. はじめに『Start new Android Studio project』を選択し、『Next』ボタンを押下
    00_top.PNG

  2. プロジェクトを作成する画面で**『Include Kotlin support』にチェックを入れる**、『Next』ボタンを押下
    01_create_project.PNG

  3. ターゲットとなるデバイスとmin sdkを選択し、『Next』ボタンを押下
    02_min_sdk.PNG

  4. 初期状態で追加するモジュールを選択し、『Next』ボタンを押下
    03_select_first.PNG

  5. 追加するモジュールの設定をし、『Finish』ボタンを押下
    04_choose_activity_name.PNG

  6. プロジェクトが作成されるまで待機
    05_waiting.PNG

  7. プロジェクトが生成されて以下の画面が表示されれば終了

参考

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?