LoginSignup
0

More than 5 years have passed since last update.

Android gradle plugin 3.0.0-alpha4でローカルのaarの.soファイルが読み込まれない

Last updated at Posted at 2017-06-28

現象

Android gradle plugin を3.0.0-alpha4にしたところ、以下のようにインポートしたローカルのaar内の.soファイルが読み込まれない(apkに含まれない?)状態になり実行時にリンクエラーになってしまいました。
バグなのか仕様なのかはわかっていません。

implementation project(":module_name")

対策

jarみたいにlibsなどに直接いれて、flatDirを使うといけました。

repositories {
    flatDir {
        dirs "libs"
    }
}

dependencies {
    implementation(name: 'aar_name', ext: 'aar')
}

追記 2017-10-03

少なくともbeta6では直っているようです。

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
0