android.view.View$OnUnhandledKeyEventListener

后端 未结 9 2455
难免孤独
难免孤独 2020-12-08 09:03

I am new to Android Studio and I don\'t get why my toolbar isn\'t shown as described by https://developer.android.com/training/appbar/setting-up I know there are already som

9条回答
  •  [愿得一人]
    2020-12-08 09:40

    It's not an error but a warning it can be ignored by the addition of the following code in my build.gradle (app level) the file works in my case. Then sync and build the project. Hopefully, it fixes the issue.

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

    Reference to the gist

提交回复
热议问题