10
11

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.

Gradle で Maven から依存関係を解決しようとしたら怒られた時の対処

Posted at

Artifact に、aar と jar の二種類があるものに対して、以下のように依存関係を記述すると、怒られる。


dependencies {
    compile 'jp.co.nohana:Eligor:1.1.+'
}

コンソールに以下のように表示され、ビルドが失敗する。

Module version jp.co.nohana:Eligor:1.1.0 depends on libraries but is not a library itself

なんのこっちゃい、という感じではあるが、aar が欲しいのか jar が欲しいのか理解してないっぽいようなことがあるんじゃないかという推測で、以下のように書きなおしたら通った。


dependencies {
    compile 'jp.co.nohana:Eligor:1.1.+@aar'
}
10
11
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
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?