1
3

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.

Android Studioでライブラリをモジュールとして追加する

Last updated at Posted at 2019-03-25

公式サイト
https://developer.android.com/studio/projects/android-library

上は少々長いので最低限やることを抜粋。

1.File→New→New Module→Android Library→Next
      →Library Name、Module Name、Package Nameを指定→Finish

Package Nameの指定は重要。適当な名前をつけるとライブラリのパッケージの名前を変えないといけなくなる。

2.ライブラリの中身をPackage配下にコピペする

3.appフォルダのbuild.gradleに依存関係を追加
dependencies {
  implementation project(":「Library Name」")
  .....
  .....
}

その他の参考サイト
https://techbooster.org/android/18043/

1
3
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
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?