Skip to content

#Bug. App Wont compile on android #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
samgetbitmoney opened this issue Apr 21, 2025 · 2 comments
Closed

#Bug. App Wont compile on android #156

samgetbitmoney opened this issue Apr 21, 2025 · 2 comments

Comments

@samgetbitmoney
Copy link

samgetbitmoney commented Apr 21, 2025

`../../../../.pub-cache/hosted/pub.dev/web-1.1.1/lib/src/dom/entries_api.dart:34:57: Error: Type 'JSObject' not found.
extension type FileSystemEntry._(JSObject ) implements JSObject {
^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/web-1.1.1/lib/src/dom/webauthn.dart:367:46: Error: 'JSObject' isn't a type.
extension type PublicKeyCredentialRpEntity.
(JSObject _)
^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/web-1.1.1/lib/src/dom/webauthn.dart:635:27: Error: 'JSArray' isn't a type.
external set signatures(JSArray value);
^^^^^^^
../../../../.pub-cache/hosted/pub.dev/web-1.1.1/lib/src/dom/payment_request.dart:104:22: Error: Type 'JSBoolean' not found.
external JSPromise canMakePayment();
^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/web-1.1.1/lib/src/dom/payment_request.dart:142:5: Error: Type 'JSArray' not found.
JSArray modifiers,
^^^^^^^
./../../../Downloads/flutter/packages/flutter_web_plugins/lib/src/plugin_registry.dart:7:8: Error: Dart library 'dart:ui_web' is not available on this platform.
import 'dart:ui_web' as ui_web;
^
../../../../Downloads/flutter/packages/flutter_web_plugins/lib/src/plugin_registry.dart:76:12: Error: Method not found: 'setPluginHandler'.
ui_web.setPluginHandler(handleFrameworkMessage);
^^^^^^^^^^^^^^^^
../../../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:5:8: Error: Dart library 'dart:ui_web' is not available on this platform.
import 'dart:ui_web' as ui_web;
^
Context: The unavailable library 'dart:ui_web' is imported through these packages:

package:getbit => package:segment_analytics => package:flutter_web_plugins => dart:ui_web

Detailed import paths for (some of) the these imports:

package:getbit/main.dart => package:segment_analytics/analytics_web.dart => package:flutter_web_plugins/flutter_web_plugins.dart => package:flutter_web_plugins/src/navigation/url_strategy.dart => dart:ui_web
package:getbit/main.dart => package:segment_analytics/analytics_web.dart => package:flutter_web_plugins/flutter_web_plugins.dart => package:flutter_web_plugins/src/plugin_event_channel.dart => package:flutter_web_plugins/src/plugin_registry.dart => dart:ui_web
package:getbit/main.dart => package:segment_analytics/analytics_web.dart => package:flutter_web_plugins/flutter_web_plugins.dart => package:flutter_web_plugins/src/plugin_registry.dart => dart:ui_web

../../../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:9:1: Error: Dart library 'dart:ui_web' is not available on this platform.
export 'dart:ui_web'
^
../../../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:21:21: Error: Type 'ui_web.UrlStrategy' not found.
void setUrlStrategy(ui_web.UrlStrategy? strategy) {
^^^^^^^^^^^^^^^^^^
../../../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:42:31: Error: Type 'ui_web.HashUrlStrategy' not found.
class PathUrlStrategy extends ui_web.HashUrlStrategy {
^^^^^^^^^^^^^^^^^^^^^^
../../../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:53:9: Error: Type 'ui_web.PlatformLocation' not found.
final ui_web.PlatformLocation _platformLocation;
^^^^^^^^^^^^^^^^^^^^^^^
../../../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:21:28: Error: 'UrlStrategy' isn't a type.
void setUrlStrategy(ui_web.UrlStrategy? strategy) {
^^^^^^^^^^^
../../../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:22:10: Error: Setter not found: 'urlStrategy'.
ui_web.urlStrategy = strategy;
^^^^^^^^^^^
./../../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:47:26: Error: The super constructor has no corresponding positional parameter.
PathUrlStrategy([super.platformLocation, this.includeHash = false])
^
../../../../Downloads/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:53:16: Error: 'PlatformLocation' isn't a type.
final ui_web.PlatformLocation _platformLocation;
^^^^^^^^^^^^^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ajs_interop; message=StandardFileSystem only supports file:* and data:* URIs)
#0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:45)
#1 asFileUri (package:vm/kernel_front_end.dart:820)
#2 writeDepfile (package:vm/kernel_front_end.dart:960)

#3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:712)

#4 starter (package:frontend_server/starter.dart:109)

#5 main (file:///Volumes/Work/s/w/ir/x/w/sdk/pkg/frontend_server/bin/frontend_server_starter.dart:13)
frontend_server_starter.dart:13

Target kernel_snapshot_program failed: Exception
2

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/Users/samsheldin/Downloads/flutter/bin/flutter'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org
`

@samgetbitmoney samgetbitmoney changed the title #Bug. App Wont compile #Bug. App Wont compile on android Apr 21, 2025
@samgetbitmoney
Copy link
Author

Flutter 3.29.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 35c388afb5 (2 months ago) • 2025-02-10 12:48:41 -0800
Engine • revision f73bfc4522
Tools • Dart 3.7.0 • DevTools 2.42.2

[✓] Flutter (Channel stable, 3.29.0, on macOS 15.3.2 24D81 darwin-arm64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development.
Download at: https://developer.apple.com/xcode/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
✗ CocoaPods not installed.
CocoaPods is a package manager for iOS or macOS platform code.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/to/platform-plugins
For installation instructions, see https://guides.cocoapods.org/using/getting-started.html#installation
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] Connected device (3 available)
[✓] Network resources

@samgetbitmoney
Copy link
Author

Closing this issue as it happens due to Navigation observer => ScreenObserver()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant