LoginSignup
36
36

More than 5 years have passed since last update.

AndroidStudio .jarファイル追加

Posted at

librariesディレクトリ追加

プロジェクト名にカーソルがある状態で

File > New > Directory > 'libraries'

app,gradleと同じ階層にlibrariesディレクトリ作られる

librariesディレクトリにコピペ

.jarファイルをコピペ。
※ドラッグ&ドロップだとパーミッションで怒られるのでコピペ

build.gradle追加

.jarファイル > 右クリック > 'Add as library'
build.gradleに追加されていることを確認(srcの中のほう)

build.gradle
dependencies { 
    compile files('../libraries/ほげ.jar) ←追加されてる  
}

追加後ナビバーの sync gradle ボタン押して完了

36
36
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
36
36