add 'tools:replace=“Android:value”' to <meta-data> element at AndroidManifest

后端 未结 11 2107
温柔的废话
温柔的废话 2020-11-30 20:07

I\'m following a tutorial in HeadFirst Android development and encountered issues after adding: private ActionBarDrawerToggle drawerToggle;

The control was depre

11条回答
  •  -上瘾入骨i
    2020-11-30 21:07

    Problem is that all support libraries with same version and major version has to match compile SDK version.

    So try to force a specific support library version. Put this at the end of your app module in build.gradle.

    configurations.all {
        resolutionStrategy.eachDependency { DependencyResolveDetails details ->
            def requested = details.requested
            if (requested.group == 'com.android.support') {
                if (!requested.name.startsWith("multidex")) {
                    details.useVersion '25.3.0'
                }
            }
        }
    }
    

提交回复
热议问题