question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning assertj-android-appcompat-v7 depends on one or more Android Libraries but is a jar

See original GitHub issue

I keep getting the following warning:

WARNING: Module 'com.squareup.assertj:assertj-android-design:1.1.1' depends on one or more Android Libraries but is a jar
WARNING: Module 'com.squareup.assertj:assertj-android-support-v4:1.1.1' depends on one or more Android Libraries but is a jar
WARNING: Module 'com.squareup.assertj:assertj-android-appcompat-v7:1.1.1' depends on one or more Android Libraries but is a jar

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

14reactions
dadoufcommented, Feb 15, 2016

I’m adding my two cents: I ran into a similar issue (same error message but with assertj-android-recyclerview-v7). I solved it by declaring my dependency with @aar, so:

testCompile 'com.squareup.assertj:assertj-android-recyclerview-v7:1.1.1@aar'

instead of

testCompile 'com.squareup.assertj:assertj-android-recyclerview-v7:1.1.1'
0reactions
jdulaneycommented, Dec 4, 2015

I ran into the same issue. I solved it by doing the following:

testCompile("com.squareup.assertj:assertj-android:1.1.1") {
    exclude group: "com.android.support", module: "support-annotations"
    exclude group: "com.android.support", module: "support-v4"
}

testCompile("com.squareup.assertj:assertj-android-support-v4:1.1.1") {
    exclude group: "com.android.support", module: "support-annotations"
    exclude group: "com.android.support", module: "support-v4"
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle Warning "unspecified depends on libraries but is a jar ...
Warning is caused by pure-jave myjavalibrary module having a dependency on the myandroidlibrary one, which is an Android library. Gradle warns you that...
Read more >
Create an Android library - Android Developers
Add your AAR or JAR as a dependency​​ To use your Android library's code in another app module, proceed as follows: Navigate to...
Read more >
Considerations when creating Android libraries - Medium
JAR file in a Java app, except that for Android the library file has the ... straightforward: one mode will be strict and...
Read more >
Remediation for Bad OpenSSL Versions - Google Help
One or more of your apps contain a defective version of OpenSSL library, ... 1. Update your app and fix the "Bad OpenSSL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found