gradle-lint-plugin icon indicating copy to clipboard operation
gradle-lint-plugin copied to clipboard

google play services issues

Open rahuldevanavar91 opened this issue 6 years ago • 3 comments

  apply plugin: 'nebula.lint'
   gradleLint.rules = ['unused-dependency'] // add as many rules here as you'd like

following is the dependencies I have added for firebase.

api "com.google.android.gms:play-services-location:15.0.1"
    api "com.google.android.gms:play-services-auth:16.0.0"

    //Firebase
    api("com.google.firebase:firebase-core:16.0.1") {
        exclude module: 'support-v4'
    }
    api "com.google.firebase:firebase-crash:16.2.0"
    api "com.google.firebase:firebase-auth:16.0.3"
    api "com.google.firebase:firebase-messaging:17.3.0"
    api "com.google.firebase:firebase-config:16.0.0"
    api "com.google.firebase:firebase-perf:16.1.0"


I am getting the error

The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[16.0.2,16.0.2], [16.0.0,16.0.0]], but resolves to 16.0.2. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

rahuldevanavar91 avatar Sep 06 '18 09:09 rahuldevanavar91

Hello, I'm just briefly looking around the internet and I found this issue might not be related to your usage of nebula.lint. See for example https://github.com/invertase/react-native-firebase/issues/1155. I would try to remove nebula.lint from your build and see if you can still reproduce the problem. If it is truly caused by nebula.lint. Could you provide a small sample project?

chali avatar Sep 06 '18 13:09 chali

If i remove

apply plugin: 'nebula.lint'
   gradleLint.rules = ['unused-dependency'] // add as many rules here as you'd like


it works perfectly.

rahuldevanavar91 avatar Sep 07 '18 13:09 rahuldevanavar91

If you provide an example project which shows this error we can take a look. You can send me a link to a github repo which I can clone and just run a command to reproduce the problem.

chali avatar Sep 07 '18 19:09 chali