views-widgets-samples icon indicating copy to clipboard operation
views-widgets-samples copied to clipboard

AAPT: error: resource attr/flow_horizontalSeparator not found

Open ehaahe opened this issue 5 years ago • 20 comments

When i migrate android.support to androidx,it is not working with this error,how can i resolve it? the version of ConstrainLayout is 2.0.0-beta2

ehaahe avatar Jun 30 '19 04:06 ehaahe

Getting the same issue on a project that was on androidx since the beginning

zskamljic avatar Jul 01 '19 15:07 zskamljic

Did you update to gradle 3.6 alpha? Try changing back - do classpath 'com.android.tools.build:gradle:3.5.0-beta05' That fixed it for me.

banshee avatar Jul 03 '19 18:07 banshee

This is the relevant issue in the Google tracker https://issuetracker.google.com/issues/136103084

The recommendation for now is to either:

  • Downgrade Android Studio (3.6 alpha 2 works fine for me, alpha 3 creates this issue with ConstraintLayout 2 or any other library that uses attrs the old way)
  • Add the attrs that are missing to your project. When another version of ConstraintLayout library is released with the attrs included you'll have to remove them from your project.

kaeawc avatar Jul 10 '19 15:07 kaeawc

I get the same issue. I hope fixed as soon as possible, I use android studio 3.6 Canary 4 , gradle:3.6.0-alpha04, ConstrainLayout is 2.0.0-beta2

baiyuas avatar Jul 12 '19 09:07 baiyuas

This is the relevant issue in the Google tracker https://issuetracker.google.com/issues/136103084

The recommendation for now is to either:

  • Downgrade Android Studio (3.6 alpha 2 works fine for me, alpha 3 creates this issue with ConstraintLayout 2 or any other library that uses attrs the old way)
  • Add the attrs that are missing to your project. When another version of ConstraintLayout library is released with the attrs included you'll have to remove them from your project.

How do i Downgrade Android Studio? Is there a function in it?

isipisi89 avatar Jul 18 '19 11:07 isipisi89

The same thing happened to me with android studio 3.6 canary 5 and what I did was to make a clean installation and it worked well

juanes30 avatar Jul 19 '19 01:07 juanes30

Still encountering this issue

tschellenbach avatar Feb 04 '20 23:02 tschellenbach

Still encountering this issue with ConstraintLayout 2.0.0-beta1 and build tools 3.6.0-rc02

Bill1550 avatar Feb 06 '20 17:02 Bill1550

I solved the issue using the automatic migration tool to AndroidX. After the automatic refactor, the project works fine with gradle plugin 3.6.0. No manual code modification was required.

mrv96 avatar Feb 25 '20 09:02 mrv96

Fixed my issue after changing the constraint layout version to 1.1.3

abdullahalshafi avatar Feb 25 '20 15:02 abdullahalshafi

I upgraded my constraint layout dependency to 2.0.0-beta4 and it works fine

bkanchan82 avatar Feb 26 '20 07:02 bkanchan82

And dont forget set androidx.constraintlayout.......... (should "android" with "x")

arstagaev avatar Mar 24 '20 15:03 arstagaev

I upgraded my constraint layout dependency to 2.0.0-beta4 and it works fine

it works

CyrusCeasar avatar Apr 14 '20 07:04 CyrusCeasar

I upgraded my constraint layout dependency to 2.0.0-beta4 and it works fine

Thanks, it worked.

shylendramadda avatar Apr 28 '20 18:04 shylendramadda

I upgraded my constraint layout dependency to 2.0.0-beta4 and it works fine

works for me, thank you

elraz avatar May 01 '20 12:05 elraz

I upgraded my constraint layout dependency to 2.0.0-beta4 and it works fine

nice

ghost avatar May 25 '20 09:05 ghost

there are some bugs when I upgraded from 2.0.0-beta1 to 2.0.0-beta4. lots of views in constraint layout disappear .

LinXueyuanStdio avatar Jun 05 '20 08:06 LinXueyuanStdio

I upgraded my constraint layout dependency to 2.0.0-beta4 and it works fine

worked!

liosen avatar Jul 03 '20 09:07 liosen

I upgraded my constraint layout dependency to 2.0.0-beta4 and it works fine

It worked for me. Thanks

mmimurad avatar Sep 22 '20 04:09 mmimurad

I upgraded my constraint layout dependency to 2.0.0-beta4 and it works fine

work for me. thank you!

FacuSL2 avatar Oct 01 '21 17:10 FacuSL2