LoginSignup
10
9

More than 5 years have passed since last update.

Android Studioで2つのmodule間で共通のクラスを利用する

Posted at

AndroidWearアプリ開発など、1つのプロジェクトの中に2つ以上のModuleが入っていてその間で共通のクラスを利用した場合の手順です。

File>New Module>Android Library

今回はCommonという名前にしました。

次に
File>Project Strcture
からcommon moduleを利用したいmoduleを選択し
dependenciesタブ>+>Module Dependencies
からcommonを追加

10
9
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
10
9