Fixed
Status Update
Comments
pa...@cecytebc.edu.mx <pa...@cecytebc.edu.mx> #2
Same issue.
Try this:
Roll back to AS-C3.
Set gradle back to '...:3.6.0-alpha03'. (The issue is caused by this, I think.)
Clean project.
I'm sure an update will fix it.
Try this:
Roll back to AS-C3.
Set gradle back to '...:3.6.0-alpha03'. (The issue is caused by this, I think.)
Clean project.
I'm sure an update will fix it.
rd...@vienovo.ph <rd...@vienovo.ph> #3
Same issue.
ga...@google.com <ga...@google.com> #4
Successfully downgraded projects to use AS3.6C3
RG
RG
dc...@gmail.com <dc...@gmail.com> #5
Same issue here, downgrading to AS3.6C3 works OK
au...@cernogroup.com <au...@cernogroup.com> #6
New project does not produce this kind of error, will try to drill down to what dependency will break it.
si...@rymel.com.co <si...@rymel.com.co> #7
Have drilled down and found that the error occures on
dependencies {
...
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2'
...
}
tested with following alphas and betas
"alpha3": OK
"alpha4": Fail
"alpha5": Fail
"beta1": Fail
"beta2": Fail
This was a simple test, have not tested thoroughly with a more complex test yet.
-> Solution : Downgrade 'androidx.constraintlayout:constraintlayout:2.0.0-xxx' to 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
RG
dependencies {
...
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2'
...
}
tested with following alphas and betas
"alpha3": OK
"alpha4": Fail
"alpha5": Fail
"beta1": Fail
"beta2": Fail
This was a simple test, have not tested thoroughly with a more complex test yet.
-> Solution : Downgrade 'androidx.constraintlayout:constraintlayout:2.0.0-xxx' to 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
RG
ro...@alo-group.com <ro...@alo-group.com> #8
Great catch! rolling back to 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3' enables to keep using 3.6.0-alpha04 android gradle plugin
pa...@cecytebc.edu.mx <pa...@cecytebc.edu.mx> #9
Thank you for your feedback. Team may reach out for more feedback in reproducing or triaging this issue.
br...@bigbrandtire.com <br...@bigbrandtire.com> #10
Unfortunately, alpha3 is also failing for me, see also https://issuetracker.google.com/issues/121395935
Alpha2 is working for me.
Alpha2 is working for me.
ja...@electroplastic.com.br <ja...@electroplastic.com.br> #12
FWIW I can confirm reverting to alpha3 fixes the issue for me. Going all the way back to a2 wasn't necessary.
pa...@cecytebc.edu.mx <pa...@cecytebc.edu.mx> #13
I think this is related to the change in AAPT2 where it became stricter about defining attr resources in styleables. Before you could define a new attribute under a declare styleable without giving its format, and now you have to explicitly define it as its own resource (if I understood correctly). Ryan, can you confirm? Is there perhaps a way to relax this if there are a lot of libraries that are already depending on this 'lazy' way of defining attrs? (I will check with the constraint layout folks separately to fix it on their side)
pa...@cecytebc.edu.mx <pa...@cecytebc.edu.mx> #14
This change in aapt2 was made because aapt(1) also required that one either explicitly defines the attribute separately (with or without a format) or one specifies the format on the attribute within the declare-styleable.
aapt2 did not require this at first and allowed for declare-styleable attributes defined without a format to create new attribute resources.
There is not a way to relax this currently with aapt2 but depending on how Gradle invokes aapt2, it may be possible to work around this issue by defining each missing attribute resource within the application resource directory.
<attr name="flow_horizontalSeparator" />
<attr name="flow_verticalSeparator" />
...
aapt2 did not require this at first and allowed for declare-styleable attributes defined without a format to create new attribute resources.
There is not a way to relax this currently with aapt2 but depending on how Gradle invokes aapt2, it may be possible to work around this issue by defining each missing attribute resource within the application resource directory.
<attr name="flow_horizontalSeparator" />
<attr name="flow_verticalSeparator" />
...
ja...@electroplastic.com.br <ja...@electroplastic.com.br> #15
I don't really understand this comment
> but depending on how Gradle invokes aapt2
AGP defines how Gradle invokes the aapt2 tool.
> but depending on how Gradle invokes aapt2
AGP defines how Gradle invokes the aapt2 tool.
pa...@cecytebc.edu.mx <pa...@cecytebc.edu.mx> #16
@15 What Ryan is suggesting is that if we notice that there are attributes without definitions we can automatically add them during resource merging. While it would solve our problem short term, this wouldn't work long term as it wouldn't work in the namespaced world. The proper solution would be to fix the libraries (constraintlayout and possibly other libraries out there), but it might be difficult to track them all down.
As a temporary workaround you can add the missing attributes yourself to your values file, for example:
"error: resource attr/flow_verticalSeparator not found" -> add "<attr name="flow_verticalSeparator"/>" into src/main/res/values/attrs.xml
As a temporary workaround you can add the missing attributes yourself to your values file, for example:
"error: resource attr/flow_verticalSeparator not found" -> add "<attr name="flow_verticalSeparator"/>" into src/main/res/values/attrs.xml
ro...@alo-group.com <ro...@alo-group.com> #17
Confirmed this is an issue with constraint layout 2.2.0-alpha4. Either downgrade to an older version of the library or add these to your app's src/main/res/values/attrs.xml:
<resources>
<attr name="motionProgress"/>
<attr name="motionTarget"/>
<attr name="layout_marginBottom"/>
<attr name="motionPathRotate"/>
<attr name="duration"/>
</resources>
<resources>
<attr name="motionProgress"/>
<attr name="motionTarget"/>
<attr name="layout_marginBottom"/>
<attr name="motionPathRotate"/>
<attr name="duration"/>
</resources>
ga...@google.com <ga...@google.com>
qu...@airbus.com <qu...@airbus.com> #18
John, could you take a look? I tried to look at the current sources on cs/ but I couldn't find this. These attributes appear in constraint layout 2.0.0-alpha4 (and alpha5) in AAR's res/values/values.xml.
Description
When executing the script it throws this error:
"We're sorry, a server error occurred. Please wait a bit and try"
I do not see more information. The only thing I can contribute is that I connect to an external mssql database with Jdbc.
Thank you in advance.