I am getting the following error in android studio 3.1.3 when i try to rebuild my firebase login app.please help
support-compat-27.1.1.aar\76a2bb1ead9b3a164321ee3d23767645\res\values
\values.xml:50:4: Error: The content of elements must consist of well-formed
character data or markup.
You need to check the file values.xml inside the values folder. I'm sure there is a character like an exclamation mark ! or a double quote put in between other double quotes "
Provide more info on what is inside the values.xml file to get more accurate answer.
Related
When I try to run a Node.js debugging session from Visual Code, the debugging console returns an error, saying that the bootloader.bundle.js could not be found. However, the bootloader.bundle.js file exists at the expected location, while the debug console specifies the folder incorrectly by substituting a UTF-8 character (letter č) with the replacement character (�). The snippet of the error message can be found below:
Error: Cannot find module 'c:/Users/xxxx xxxx�/AppData/Local/Programs/
Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js'
Can I somehow fix this in VS Code, perhaps by modifying the launch.json file in some way or some other settings?
Any help is appreciated!
EDIT:
I temporarily fixed the issue by reinstalling VS Code to another folder without that doesn't include diacritical characters. I'd like to to keep this question open, however, in case somebody knows of a way to fix this sort of problem (e.g. by by modifying some configuration files) that does not require either reinstalling or relying on a portable version of the app.
I have just dealt with the same issue. There have been Unicode characters in my folder's path and I got the same error "Cannot find module". Reasons are described in details here.
To fix it I have gone to File - Preferences - Settings and then entered "usePreview" and then I unchecked the option "Use the new in-preview JavaScript debugger for ..." under the section "Debug > JavaScript: Use Preview" and reloaded VS Code. The issue has gone.
For some reason, there is a space in the path and I can't figure out from where it is, so the compilation fails.
Any help will be great.
Note: the project was started in xamarin for windows and i am using now vs.net for mac to continue it.
Check config or resource file, maybe somewhere space is left.
Also try to use path in quotes like "obj/Debug/res/ renderers" or escape space with backslash obj/Debug/res/\ renderers
I have noticed in a few threads on the Xamarin Forums (here, here) that people were having troubles uploading an app to Xamarin Test Cloud. Those posts were old but none of the solutions worked.
Error I get is
Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
I created a new project with the same bundle ID and the same Info.plist and I am able to upload to XTC with that. But clearly isn't the app I want to test (though I did try out text input and screenshots, this system is awesome).
There is nothing else on my end that I can think of causing the problems. I did notice my .ipa file was about 230mb but had not seen anything about a max filesize for XTC.
I tried to use the --debug option to get more info when I ran the same command to upload from terminal but it did not help. Any suggestions what to do or why XTC servers may be erroring on my files?
Sorted it out. Issue was I had linker behavior set to "Don't link", changing it to "Link Framework SDKs Only".
Hope this helps someone else if they have this issue.
My website project has a few JavaScript library dependencies, and I am using the gulp-concat plugin in my gulpfile.js to bundle them as one library instead of including them separately:
gulp.src(['src/js/angular.min.js',
'src/js/angular-route.min.js',
'src/js/angular-sanitize.min.js',
'src/js/domador.min.js',
'src/js/megamark.min.js',
'src/js/woofmark.min.js'])
.pipe(concat('libs.js'))
.pipe(gulp.dest('dist/'));
A problem was introduced once I added the domador, megamark and woofmark libraries.
Although these libraries work perfectly fine if referenced in the HTML separately, bundling them introduces some illegal characters into my libs.js which breaks Chrome:
Uncaught SyntaxError: Unexpected token ILLEGAL
Dev Tools shows me that there are indeed three unexpected characters in-between where megamark.min.js finishes and woofmark.min.js starts:
But! When I look at libs.js in Visual Studio:
There seems to be some kind of 'hidden' characters in the mix which become 'unhidden' to Chrome and kill the script. I don't understand why they are there or why none of things I've tried to remedy it are working...
What I have tried:
Bundle everything except woofmark.min.js and include that separately. Yes, this works, but I want to bundle them all (and I want to understand what is happening)
Re-saved the files in Notepad as UTF-8 encoding. No effect.
Backspaced from half-way through the first keyword in woofmark.min.js, many more times than necessary, then re-typed the necessary characters. No effect.
Similar effort for the last few characters of megamark.min.js. No effect.
Any insight would be greatly appreciated!
Thanks to the information provided by vp_arth in the comments, I found the solution.
It seems that the woofmark.min.js file was encoded as "UTF-8 with signature", which is another way of saying that it has the invisible BOM marker which produced the illegal characters.
When sent separately by IIS it was being converted, but when concatenated in a bundle, the marker was being retained in the middle of the file, creating the illegal token.
To fix, I re-saved the file with a different encoding in Visual Studio:
File ->
Save src/js/woofmark.min.js As... ->
Save with Encoding... -> (button drop-down)
Select "Unicode (UTF-8 without signature) - Codepage 65001" from options.
Then, after re-running the gulp task, the full bundled lib.js works perfectly.
I am building an automation suite using Xcode 7 with swift.
My app loads with the following Alert View:
Allow "Light Alarm" to access your location while you use the app?
When I record with UI Testing and click this alert I get the following code:
app.alerts["Allow \U201cLight Alarm\U201c to access your location while you use the app?"]
Note: The quotes has been replaced with \U201c
However, when I try and compile I get the following error:
"Invalid escape sequence in literal"
Anyone know how to get round this?
This seems to be a bug in Xcode when generating code during UI recording.
Swift uses \u{NNNN} escape sequences in string literals, so
app.alerts["Allow \u{201c}Light Alarm\u{201c} ..."]
would be correct, or simply
app.alerts["Allow “Light Alarm“ ..."]
(Actually it should be "Allow “Light Alarm” ..." where the
second quotation mark is U+201D = RIGHT DOUBLE QUOTATION MARK :)
A similar issue for UI recorded code in Objective-C was reported in
Incomplete universal character name in UI Testing.
I do not know a workaround, it seems that the only thing you can do
at present is to fix the code after recording (and sent a bug report
to Apple).
Installing Xcode 7.3 fixed this issue for me