Can't Repro
Status Update
Comments
ko...@gmail.com <ko...@gmail.com> #2
Android Studio is actually 0.8.11
[Deleted User] <[Deleted User]> #3
The stack trace seems to say you are running with several definitions of one annotation. This seems to often be caused by including 2 different versions of the same library in an instrumentation apk and its tested application apk. Could you please check it's not your case here? If it's your case, you should fix that.
Looking at dx about this report, it seems that DX may fail to check a duplicate class definition when running multidex, I've recorded a bug about this point.
That said, it does not look like we could be in the DX lack of check case here, because mainDexClasses is keeping all the annotations in the main dex (and dx seems to correctly identify the duplicate definition when the 2 definitions are added to the same dex). (Can you confirm that you're using mainDexClasses to create your main dex list?)
I'm assigning back to you xav in case you want to add some check in the SDK.
Looking at dx about this report, it seems that DX may fail to check a duplicate class definition when running multidex, I've recorded a bug about this point.
That said, it does not look like we could be in the DX lack of check case here, because mainDexClasses is keeping all the annotations in the main dex (and dx seems to correctly identify the duplicate definition when the 2 definitions are added to the same dex). (Can you confirm that you're using mainDexClasses to create your main dex list?)
I'm assigning back to you xav in case you want to add some check in the SDK.
ko...@gmail.com <ko...@gmail.com> #4
The error is not reproducible in other machines, so it's probably a local config problem. We'll try the mainDexClasses approach.
Description
1. Update Chrome to 29.0.1547.0 dev-m
2. setSandboxMode(HtmlService.SandboxMode.NATIVE)
3. alert(google.script.sandbox.mode);
What is the expected output? What do you see instead?
Expected: google.script.sandbox.mode = 'NATIVE'
Actual: google.script.sandbox.mode = 'EMULATED'
If possible, provide the code for a small sample script that reproduces the
issue:
function doGet() {
return HtmlService.createTemplateFromFile('test').evaluate().setSandboxMode(HtmlService.SandboxMode.NATIVE);
}
test.html:
<html>
<body>
<script>
"use strict";
if (google.script.sandbox.mode == 'EMULATED'){
alert('Unfortunately your browser is not supported.');
}
</script>
</body>
</html>
Project key (found under "File > Project properties"):
MGXjYpyyRl7lRQQlfrUz68S9ykrv0nj40
On which browser & OS?
Windows 7, Chrome Dev track