0

in my application i want to add Firebase MLKit but when i add firebase library in app gradle like

implementation 'com.google.firebase:firebase-ml-vision:16.0.0'

That time

implementation 'com.android.support:appcompat-v7:27.1.1'

gives error

i also try to add

implementation 'com.android.support:support-annotations:27.1.1'

but it will still give error.

enter image description here

amit
  • 659
  • 1
  • 8
  • 21

2 Answers2

0

Add this in Module app build.gradle Try this, hope it may help you :-

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

Sync and build the code.

Rajshree Tiwari
  • 630
  • 1
  • 7
  • 27
0

First select the Project from list

enter image description here

then goto

project/.idea/libraries

and check which support libraries are different

enter image description here

If you got that then add these libraries manually in gradle dependencies

Then sync your project again..

code4rox
  • 941
  • 9
  • 34