Fixed
Status Update
Comments
as...@google.com <as...@google.com> #2
Thank you for your feedback. Team may reach out for more feedback in reproducing or triaging this issue.
do...@gmail.com <do...@gmail.com> #3
Ivan, has anything changes in the flags that are passed to D8 for the run button compared to other ways of building?
as...@google.com <as...@google.com> #4
Running the application from the IDE passes the same min api level as when building from the command line. Can you please add the following snippet to build.gradle and upload the output?
android.applicationVariants.all { variant ->
println "Variant ${variant.name } has min sdk version ${variant.getMergedFlavor().getMinSdkVersion()}"
}
android.applicationVariants.all { variant ->
println "Variant ${
}
ma...@theotcentre.co.uk <ma...@theotcentre.co.uk> #5
This correctly reports that they're all minimum API version 21.
> Configure project :app
Variant debug has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant release has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant myvariant has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
I don't know why the error messages relate to API 24 or 26 when we have successfully built/deployed the same product with other versions or toolchains.
> Configure project :app
Variant debug has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant release has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant myvariant has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
I don't know why the error messages relate to API 24 or 26 when we have successfully built/deployed the same product with other versions or toolchains.
ad...@bouldernordic.org <ad...@bouldernordic.org> #6
There should be more information in the logs, with information to enable desugaring (by adding compileOptions) or increase min sdk version. Can you please add the following snippet to build.gradle and share the output?
android.applicationVariants.all { variant ->
println "Variant ${variant.name } with Java 8 language support: ${((com.android.build.gradle.internal.variant.BaseVariantData) variant.variantData).scope.java8LangSupportType}"
}
android.applicationVariants.all { variant ->
println "Variant ${
}
ad...@bouldernordic.org <ad...@bouldernordic.org> #7
OK - I discovered that this fault does not occur (it deploys) in Studio 3.4 RC2 with:
com.android.tools.build:gradle:3.3.2
It does occur with:
com.android.tools.build:gradle:3.4.0-rc02
This is the output under 3.3.2:
Variant debug has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant debug with Java 8 language support: D8
Variant release has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant release with Java 8 language support: D8
Variant myvariant has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant myvariant with Java 8 language support: D8
This is the output under 3.4.0-rc02:
Variant debug has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant debug with Java 8 language support: D8
Variant release has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant release with Java 8 language support: R8
Variant myvariant has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant myvariant with Java 8 language support: R8
com.android.tools.build:gradle:3.3.2
It does occur with:
com.android.tools.build:gradle:3.4.0-rc02
This is the output under 3.3.2:
Variant debug has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant debug with Java 8 language support: D8
Variant release has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant release with Java 8 language support: D8
Variant myvariant has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant myvariant with Java 8 language support: D8
This is the output under 3.4.0-rc02:
Variant debug has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant debug with Java 8 language support: D8
Variant release has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant release with Java 8 language support: R8
Variant myvariant has min sdk version DefaultApiVersion{mApiLevel=21, mCodename='null'}
Variant myvariant with Java 8 language support: R8
ma...@theotcentre.co.uk <ma...@theotcentre.co.uk> #8
Apologies, I put those in the wrong order, now corrected.
as...@google.com <as...@google.com> #9
Can you try to create a sample project that reproduces the issue, as I was not able to reproduce?
There is also one strange thing about the logs. From #1, the variant that fails to build is "buildly", and D8 fails to process it. However, in #7 there is no buildly variant? Has the project changed in the meantime?
There is also one strange thing about the logs. From #1, the variant that fails to build is "buildly", and D8 fails to process it. However, in #7 there is no buildly variant? Has the project changed in the meantime?
ma...@theotcentre.co.uk <ma...@theotcentre.co.uk> #10
No, that's my failure to properly substitute out our actual variant names.
I will look at reproducing it with a sample project as time permits. If there's any factors that are likely to be important, then please advise. Alternatively I can share our full Gradle file in a private channel.
I will look at reproducing it with a sample project as time permits. If there's any factors that are likely to be important, then please advise. Alternatively I can share our full Gradle file in a private channel.
as...@google.com <as...@google.com> #11
You can email your build.gradle to gavra@google.com.
ma...@theotcentre.co.uk <ma...@theotcentre.co.uk> #12
With additional information, I was able to confirm that the issue is when Instant Run is enabled, and the variant is minified with R8.
For the variant, we report R8 as code shrinker and tool that will do the desugaring. However, with Instant Run we disable code shrinking, and D8 will run. Because desugaring does not specify D8 as the tool, we won't run desugaring with D8, which causes the issue in #1. I am working on a fix.
For the variant, we report R8 as code shrinker and tool that will do the desugaring. However, with Instant Run we disable code shrinking, and D8 will run. Because desugaring does not specify D8 as the tool, we won't run desugaring with D8, which causes the issue in #1. I am working on a fix.
jk...@google.com <jk...@google.com> #13
This should be fixed in the Android Gradle Plugin 3.4.1.
Change id: ag/I973bcd34a9a27ac46035688885ca714390d61528
Change id: ag/I973bcd34a9a27ac46035688885ca714390d61528
ma...@theotcentre.co.uk <ma...@theotcentre.co.uk> #14
Thanks for the fix. The application no longer runs into this error.
However, the application is now reporting errors when fetching data from third party apps with GAS urlfetchapp.
Attached screenshots.
1) This problem has arisen following the fix.
2) I can confirm that I can fetch this data manually by typing the URL in a browser window. No errors occur.
We desperately need this application back in operation and would very much appreciate your support.
Mark Spencer
Director
The OT Centre
www.theotcentre.co.uk
However, the application is now reporting errors when fetching data from third party apps with GAS urlfetchapp.
Attached screenshots.
1) This problem has arisen following the fix.
2) I can confirm that I can fetch this data manually by typing the URL in a browser window. No errors occur.
We desperately need this application back in operation and would very much appreciate your support.
Mark Spencer
Director
The OT Centre
as...@google.com <as...@google.com> #15
Mark,
Would you please start new thread as this is not related to Anchor anymore and would you please post the code that throws the error?
Thanks,
Anton
Would you please start new thread as this is not related to Anchor anymore and would you please post the code that throws the error?
Thanks,
Anton
as...@google.com <as...@google.com> #16
nvm, found it :)
Description
It was last working on the evening of Jan 10th and failed on the morning of Jan 11th with error "Syntax error: TypeError: Cannot find function setWordWrap in object Anchor. line: ? (line 1411)".
This application is used to manage our clinical records and client case-loads and is critical to our operations.
The GAS project is composed of a number of script files, which appears to confound the line ref (1411) in the above error. However, the first occurrence of .setWordWrap for an Anchor appears at line 1416 in one of the script files, as follows
function createCustomerContactPanel(WidgetMaker,Width) {
return WidgetMaker.createVerticalPanel().
add(WidgetMaker.createLabel("Customer Details")).
add(WidgetMaker.createVerticalPanel().setWidth(Width).setStyleAttribute('border-radius', '5px').setStyleAttribute('border-style', 'solid').setStyleAttribute('border-width', '1px').setStyleAttribute('padding','2').setStyleAttribute('margin-bottom','8').
add(WidgetMaker.createHorizontalPanel().
add(WidgetMaker.createLabel("Name: ",false).setStyleAttribute('margin-right','3')).
add(WidgetMaker.createAnchor("","").setId("CustomerName").setStyleAttribute('color','rgb(86,101,255)').setStyleAttribute('font-size', '0.9em').setWordWrap(false)).
add(WidgetMaker.createAnchor("","").setId("CustomerCompany").setStyleAttribute('color','rgb(86,101,255)').setStyleAttribute('margin-left','3').setStyleAttribute('font-size', '0.9em'))).
add(WidgetMaker.createHorizontalPanel().
add(WidgetMaker.createLabel("Customer since: ",false).setStyleAttribute('margin-right','3')).
add(WidgetMaker.createLabel().setId("CustomerOriginDate").setStyleAttribute('color','rgb(86,101,255)'))).
add(WidgetMaker.createTree().
addItem(WidgetMaker.createTreeItem("Contact Details: ").
addItem(WidgetMaker.createAnchor("","").setId("CustomerEmail1").setStyleAttribute('position', 'relative').setStyleAttribute('left', '-15').setStyleAttribute('lineHeight', '60%').setStyleAttribute('color','rgb(86,101,255)').setStyleAttribute('font-size', '0.82em')).
addItem(WidgetMaker.createAnchor("","").setId("CustomerEmail2").setStyleAttribute('position', 'relative').setStyleAttribute('left', '-15').setStyleAttribute('lineHeight', '60%').setStyleAttribute('color','rgb(86,101,255)').setStyleAttribute('font-size', '0.82em')).
addItem(WidgetMaker.createHorizontalPanel().setStyleAttribute('position', 'relative').setStyleAttribute('left', '-15').setStyleAttribute('lineHeight', '60%').
add(WidgetMaker.createLabel("t: ",false).setStyleAttribute('margin-right','3')).
add(WidgetMaker.createVerticalPanel().
add(WidgetMaker.createLabel().setId("CustomerTelephone1").setStyleAttribute('color','rgb(86,101,255)')).
add(WidgetMaker.createLabel().setId("CustomerTelephone2").setStyleAttribute('color','rgb(86,101,255)')))).
addItem(WidgetMaker.createHorizontalPanel().setStyleAttribute('position', 'relative').setStyleAttribute('left', '-15').setStyleAttribute('lineHeight', '60%').
add(WidgetMaker.createLabel("m: ",false).setStyleAttribute('margin-right','3')).
add(WidgetMaker.createLabel().setId("CustomerMobile").setStyleAttribute('color','rgb(86,101,255)'))).
addItem(WidgetMaker.createTreeItem("Address").
addItem(WidgetMaker.createVerticalPanel().setStyleAttribute('color','rgb(86,101,255)').setStyleAttribute('position', 'relative').setStyleAttribute('left', '-15').
add(WidgetMaker.createLabel().setId("CustomerAddressStreet1").setStyleAttribute('color','rgb(86,101,255)')).
add(WidgetMaker.createLabel().setId("CustomerAddressStreet2").setStyleAttribute('color','rgb(86,101,255)')).
add(WidgetMaker.createLabel().setId("CustomerAddressCity").setStyleAttribute('color','rgb(86,101,255)')).
add(WidgetMaker.createLabel().setId("CustomerAddressCounty").setStyleAttribute('color','rgb(86,101,255)')).
add(WidgetMaker.createLabel().setId("CustomerAddressPostCode").setStyleAttribute('color','rgb(86,101,255)')))))).
add(WidgetMaker.createHorizontalPanel().
add(WidgetMaker.createLabel("Last Comms: ",false).setStyleAttribute('margin-right','3')).
add(WidgetMaker.createVerticalPanel().
add(WidgetMaker.createLabel().setId("LastCustomerCommunication").setStyleAttribute('color','rgb(86,101,255)')).
add(WidgetMaker.createHorizontalPanel().
add(WidgetMaker.createLabel().setId("LastCustomerCommunicationLinkIndicator")).
add(WidgetMaker.createAnchor("","").setId("LastCustomerCommunicationLink").setStyleAttribute('font-size', '0.85em'))))));}
Thanks for your help
Mark Spencer
Director
The OT Centre
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
On which browser & OS?
Please provide any additional information below.