material-components-android-codelabs icon indicating copy to clipboard operation
material-components-android-codelabs copied to clipboard

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

Open Sicness opened this issue 4 years ago • 0 comments

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):

  • Level MDC-103
  • Language (Java)
  • Link to the codelab at the step with the issue:
  • https://codelabs.developers.google.com/codelabs/mdc-103-java#3
  • https://codelabs.developers.google.com/codelabs/mdc-103-java#2

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

Sicness avatar Aug 10 '21 10:08 Sicness