capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

I want to detect mobile location is on or off

Open TechNerdsUzi opened this issue 8 years ago • 2 comments

when i install cordova.plugins.diagnostic plugin in my capacitor app i got this error

Android dependency 'com.android.support:support-v4' has different version for the compile (26.1.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution

plzz tell me how i fix this.

TechNerdsUzi avatar Jul 05 '18 07:07 TechNerdsUzi

I had a similar issue and fixed it by adding the following to the build.gradle file inside the android folder.

subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.android.support'
                    && !details.requested.name.contains('multidex') ) {
                details.useVersion "27.1.1"
            }
        }
    }
}

p.s. you should change the title of this issue as it doesn't represent the content

json-derulo avatar Jul 06 '18 06:07 json-derulo

I think best way of handling this is to add the dependency to the app's build.gradle with the version you want to use. (i.e. implementation 'com.android.support:support-v4:27.1.1'). That should get rid of this problem.

If not, adding what danielsmin1 said will force all support libraries to use 27.1.1 version.

jcesarmobile avatar Jul 10 '18 17:07 jcesarmobile