flutter unity widget with vuforia on web app - flutter

I have created a project with Unity-Vuforia for Flutter. build and it is very good for Android and IOS, but when I got the webGl build and Flutter also got the web by flutter build web --web-renderer canvaskit -t lib/main.dart, and run, it stays in Loading and does nothing. It returns an error in the log in console. Uncaught SyntaxError: Invalid or :8000/UnityLibrary/B…y.framework.js.br:1 unexpected token
this is my steps
1.
build flutter web
flutter build web --web-renderer canvaskit -t lib/main.dart
Launch a web server by python
python -m http.server 8000

Related

Launch emulator from windows command line receive error G67247B7E

Newbee here. Trying to run the android emulator for the generic first_app flutter application.
Run flutter run -d windows
Receive:
C:\Development\Flutter\first_app>flutter run -d windows
Launching lib\main.dart on Windows in debug mode...
lib/main.dart(60,15): error G67247B7E: Expected ';' after this. [C:\Development\Flutter\first_app\build\windows\flutter\flutter_assemble.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5): error MSB8066: Custom build for 'C:\Development\Flutter\first_app\build\windows\CMakeFiles\13756e3632117b79f6e0bc292bc438e0\flutter_windows.dll.rule;C:\Development\Flutter\first_app\build\windows\CMakeFiles\f154f6c681490929a1ff6491e40cd6b3\flutter_assemble.rule' exited with code 1. [C:\Development\Flutter\first_app\build\windows\flutter\flutter_assemble.vcxproj]
Building Windows application...
Exception: Build process failed.
Other information:
Flutter Doctor is clean. That took hours.
Running from Android Studio works.
Launching emulator works correctly
Have tried Flutter Clean, Flutter upgrade, Flutter Master.
Have tried running from powershell with the same error.
Any assistance welcomed.
First you can check if the emulator is running or not by this command
flutter devices
Then you can directly run your app through
flutter run -d device-id
In my case, it was
flutter run -d emulator-5554
All, on a whim, I deleted my first_app and created it again via flutter create first_app.
Immediately running flutter run, it works!

Flutter web run in chrome?

Launching lib\main.dart on Chrome in debug mode...
lib\main.dart:1
Failed to launch browser after 3 tries. Command used to launch it: C:\Users\admin\AppData\Local\Google\Chrome\Application\chrome.exe --user-data-dir=C:\Users\admin\AppData\Local\Temp\flutter_tools.d39b26cf\flutter_tools_chrome_device.96f3921c --remote-debugging-port=55848 --disable-background-timer-throttling --disable-extensions --disable-popup-blocking --bwsi --no-first-run --no-default-browser-check --disable-default-apps --disable-translate http://localhost:55815
Failed to launch browser. Make sure you are using an up-to-date Chrome or Edge. Otherwise, consider using -d web-server instead and filing an issue at https://github.com/flutter/flutter/issues.
flutter config --enable-web
Add this

Flutter Web app stuck on startup and splash screen

Flutter web app stuck on startup.
Cause:
ChromeProxyService: Failed to evaluate expression 'ui.webOnlyWarmupEngine': InternalError: Expression evaluation in async frames is not supported. No frame with index 163..
Same problem on Chrome and on command flutter run -d web-server and open using Brave Browser localhost page.
How I can avoid it? I remove splash screen from code and pubspec.yaml, then run flutter clean, but this error still exist.
Any ideas?
EDIT:
Same problem on:
Flutter version 3.3.0 on channel stable
and
Flutter version 3.5.0-6.0.pre.64 on channel master

flutter: split-debug-info Don't work for web project?

when I use the command on windows build everything is ok:
flutter build windows --split-debug-info=mySoftware/symbols
When I use the same command to web build i get the message:
flutter build web--split-debug-info=profept_client/symbols
**`Could not find an option named "split-debug-info".`**
why I can't run this command o flutter web?

How can I install my ionic app on my android phone?

I'm trying to install my ionic app on my android phone. I tried
install my ionic app on my android phone
The app ran on my phone, but when I ran the same command to run a different app, the app was replaced on my mobile. How can I keep both? I don't intend to modify any of these apps, they are ready. I tried these commands as well:
ionic cordova build android --prod --release
and
ionic cordova run android --prod --release
I got this error message:
[ERROR] An error occurred while running cordova run android --release
(exit code 1)
By default, it will overwrite the previous version. You can keep the both app using below way:
Check the config.xml file, and change the id of the app.
<widget id="new.app.id" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
Now, it will be considered as a different app and will not replace the previous one.