Git Product home page Git Product logo

Comments (8)

jafu888 avatar jafu888 commented on July 16, 2024

This is a constant problem in Android.
Attributes do not have name spaces. Attributes of the same name must have the same type.

All libraries need to be carful.
Our approach:

  1. Use 2 word names (motionProgress not progress)
  2. If we get a report before we release we change the attribute.

1.1.3 was release in August 2018
So we are well pass that.

from constraintlayout.

kaeawc avatar kaeawc commented on July 16, 2024

Material Design 1.2.x depends on ConstraintLayout 1.1.3
Material Design 1.3.0-alpha02 included an upgrade to depend on ContraintLayout 2.x

Because of changes in ConstraintLayout attrs during the 2.x migration, this means that using Material Design 1.2.x with ConstraintLayout 2.x is just not possible.

from constraintlayout.

mortenholmgaard avatar mortenholmgaard commented on July 16, 2024

Haven't tried with 1.3.0-* before, but that still doesn't work..
I get exactly the same error with those references:

implementation 'com.google.android.material:material:1.3.0-rc01'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4' // also tried with 2.0.1 which should be exactly what material is using but doesn't work either.

from constraintlayout.

jafu888 avatar jafu888 commented on July 16, 2024

Have you tried contacting the material team ?

from constraintlayout.

xuyisheng avatar xuyisheng commented on July 16, 2024

I meet the same error with constraintlayout:2.1.0-alpha2 and material:1.2.0

from constraintlayout.

kaeawc avatar kaeawc commented on July 16, 2024

@xuyisheng @mortenholmgaard what versions are you running of Android Studio & AGP? On 4.1.1 and 4.1.2 and the Arctic Fox canaries I'm not seeing the issue you describe with these versions:

implementation 'com.google.android.material:material:1.3.0-rc01'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4' 

from constraintlayout.

mortenholmgaard avatar mortenholmgaard commented on July 16, 2024

I am running Android Studio 4.1.2 and AGP 4.1.2.

I tried making a sample project for the case but saw that it worked then. So after some elimination of the other included libaries I figured out that the conflict was with this: miguelhincapie/CustomBottomSheetBehavior#85

from constraintlayout.

OmidAmirii avatar OmidAmirii commented on July 16, 2024

have resolved it by renaming the attr name

attr name="fontTest" format="integer"

from constraintlayout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.