Android dependency '..' has different version for the compile (..) and runtime (..) classpath

后端 未结 5 410
情深已故
情深已故 2020-12-29 04:44

I migrated to Android Studio 3 and Gradle 4. Then I changed compile to implementation in my build.gradle files. But I get the error:



        
5条回答
  •  离开以前
    2020-12-29 05:25

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

    put this code in your project gradle

提交回复
热议问题