Error:(59, 8) error: cannot access ActivityCompatApi23 class file for android.support.v4.app.ActivityCompatApi23 not found

后端 未结 3 515
礼貌的吻别
礼貌的吻别 2021-01-06 08:12

This is my build.gradle

apply plugin: \'com.android.application\'


android {
    compileSdkVersion 25
    buildToolsVersion \"26.0.2\"
    android {
                


        
3条回答
  •  暖寄归人
    2021-01-06 09:06

    I solved this problem by add this code 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'
                }
            }
        }
    }
    

提交回复
热议问题