material-components / material-components-android-codelabs

Codelabs for Material Components for Android (MDC-Android)
Apache License 2.0
220 stars 160 forks source link

styles.xml: xmlns:android="http://schemas.android.com/tools" #78

Open Sicness opened 3 years ago

Sicness commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Update dependencies in build.gradle up to the latest versions.
  2. Copy/paste code of suggested stlyles.xml in the course into Android Studio
  3. Get the error Unexpected namespace URI bound to the "android" prefix, was http://schemas.android.com/tools, expected http://schemas.android.com/apk/res/android

Expected behavior No errors

Codelab details (please complete the following information about the codelab):

Additional context Use xmlns:tools="http://schemas.android.com/tools" instead of xmlns:android="http://schemas.android.com/tools"