Can't build media in Install4J 7.0.6 - install4j

The build output:
Preparing configuration
Creating media file 'macOS Folder':
Collecting files:
Compiling launchers:
Compiling launcher 'jarcomp':
Generating VM options file vmoptions.txt.
Creating media file:
Build failed.
Cause: com.ejt.a.c.g
Failed to compile script
----------
In Static members:
1. ERROR in /private/var/folders/pf/m6dkqhld1hl4gwr21t9vtxkc0000gp/T/script6949291855714040150.java.dir/com/install4j/script/I4jScript_Internal_0.java (at line *6)
import com.install4j.api.*;
^^^^^^^^^^^^^^^^^
The import com.install4j.api cannot be resolved
----------
In Static members:
2. ERROR in /private/var/folders/pf/m6dkqhld1hl4gwr21t9vtxkc0000gp/T/script6949291855714040150.java.dir/com/install4j/script/I4jScript_Internal_0.java (at line *7)
import com.install4j.api.beans.*;
^^^^^^^^^^^^^^^^^
The import com.install4j.api cannot be resolved
----------
In Static members:
3. ERROR in /private/var/folders/pf/m6dkqhld1hl4gwr21t9vtxkc0000gp/T/script6949291855714040150.java.dir/com/install4j/script/I4jScript_Internal_0.java (at line *8)
import com.install4j.api.context.*;
^^^^^^^^^^^^^^^^^
The import com.install4j.api cannot be resolved
----------
In Static members:
4. ERROR in /private/var/folders/pf/m6dkqhld1hl4gwr21t9vtxkc0000gp/T/script6949291855714040150.java.dir/com/install4j/script/I4jScript_Internal_0.java (at line *9)
import com.install4j.api.events.*;
^^^^^^^^^^^^^^^^^
The import com.install4j.api cannot be resolved
----------
In Static members:
5. ERROR in /private/var/folders/pf/m6dkqhld1hl4gwr21t9vtxkc0000gp/T/script6949291855714040150.java.dir/com/install4j/script/I4jScript_Internal_0.java (at line *10)
import com.install4j.api.screens.*;
^^^^^^^^^^^^^^^^^
The import com.install4j.api cannot be resolved
----------
In Static members:
6. ERROR in /private/var/folders/pf/m6dkqhld1hl4gwr21t9vtxkc0000gp/T/script6949291855714040150.java.dir/com/install4j/script/I4jScript_Internal_0.java (at line *11)
import com.install4j.api.actions.*;
^^^^^^^^^^^^^^^^^
The import com.install4j.api cannot be resolved
----------
In Static members:
7. ERROR in /private/var/folders/pf/m6dkqhld1hl4gwr21t9vtxkc0000gp/T/script6949291855714040150.java.dir/com/install4j/script/I4jScript_Internal_0.java (at line *12)
import com.install4j.api.formcomponents.*;
^^^^^^^^^^^^^^^^^
The import com.install4j.api cannot be resolved
----------
In Static members:
8. ERROR in /private/var/folders/pf/m6dkqhld1hl4gwr21t9vtxkc0000gp/T/script6949291855714040150.java.dir/com/install4j/script/I4jScript_Internal_0.java (at line *13)
import com.install4j.api.update.*;
^^^^^^^^^^^^^^^^^
The import com.install4j.api cannot be resolved
----------
In Static members:
9. ERROR in /private/var/folders/pf/m6dkqhld1hl4gwr21t9vtxkc0000gp/T/script6949291855714040150.java.dir/com/install4j/script/I4jScript_Internal_0.java (at line *14)
import com.install4j.api.windows.*;
^^^^^^^^^^^^^^^^^
The import com.install4j.api cannot be resolved
----------
In Static members:
10. ERROR in /private/var/folders/pf/m6dkqhld1hl4gwr21t9vtxkc0000gp/T/script6949291855714040150.java.dir/com/install4j/script/I4jScript_Internal_0.java (at line *15)
import com.install4j.api.unix.*;
^^^^^^^^^^^^^^^^^
The import com.install4j.api cannot be resolved
----------
10 problems (10 errors)
Classpath: /Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/rt.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/deploy.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/jfr.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/jsse.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/plugin.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/jfxswt.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/charsets.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/resources.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/management-agent.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/jce.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/ext/sunec.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/ext/nashorn.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/ext/cldrdata.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/ext/jfxrt.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/ext/dnsns.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/ext/localedata.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/ext/jaccess.jar:/Applications/install4j.app/Contents/Resources/jre.bundle/Contents/Home/jre/lib/ext/zipfs.jar:/var/folders/pf/m6dkqhld1hl4gwr21t9vtxkc0000gp/T/i4j_nonmod1544375354488858380.jar:/var/folders/pf/m6dkqhld1hl4gwr21t9vtxkc0000gp/T/install4j6393763453946675866_dir/set1/custom:/Applications/install4j.app/Contents/Resources/app/extensions/pdf-viewer.jar
You can select the "Enable extra verbose output" option to get more information, including a stack trace.
The Screenshot Image

Related

Fixing a dependencies problem in Flutter. Says build failed because of something related to Apple Watch but I am not using Apple Watch

I am running into a problem when trying to build my Flutter app. I am using VS Code and the latest versions of Flutter and Dart. I think I have a problem with dependencies, but not sure. I have the following dependencies in my pubspec.yaml file:
http: ^0.13.4
youtube_player_flutter: ^8.0.0
percent_indicator: ^3.4.0
endless: ^1.6.0
flutter_staggered_grid_view: ^0.6.1
transparent_image:
accordion: ^2.2.3
like_button: ^2.0.4
easy_firebase_auth: ^3.2.0
flutter_inappwebview: ^5.4.3+7
webview_flutter: ^3.0.4
firebase_core: ^1.6.0
cloud_firestore: ^2.5.1
url_launcher: ^6.1.2
geocoding: ^2.0.4
sign_in_with_apple: ^3.3.0
I run into a problem when I do a flutter build. I get the following error messages:
2022-05-17 01:32:19.580 xcodebuild[26038:192413] Requested but did not find extension point with identifier
Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of
plug-in com.apple.dt.IDEWatchSupportCore
2022-05-17 01:32:19.580 xcodebuild[26038:192413] Requested but did not find extension point with identifier
Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension
Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/xp/fl30w5315b33hw_npc3wykb40000gn/T/flutter_tools.vcek1g/flutter_ios_build_temp_dirjbPPUe/temporary_
xcresult_bundle
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.m:22:18: warning: 'addressDictionary' is deprecated: first deprecated in iOS 11.0 - Use
#properties [-Wdeprecated-declarations]
if (self.addressDictionary != nil) {
^
In module 'CoreLocation' imported from
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Libr
ary/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h:73:63: note: 'addressDictionary' has been explicitly
marked deprecated here
#property (nonatomic, readonly, copy, nullable) NSDictionary *addressDictionary API_DEPRECATED("Use #properties",
macos(10.8, 10.13), ios(5.0, 11.0), watchos(1.0, 4.0));
^
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.m:23:29: warning: 'addressDictionary' is deprecated: first deprecated in iOS 11.0 - Use
#properties [-Wdeprecated-declarations]
street = [[self addressDictionary] objectForKey:(NSString *)kABPersonAddressStreetKey];
^
In module 'CoreLocation' imported from
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Libr
ary/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h:73:63: note: property 'addressDictionary' is declared
deprecated here
#property (nonatomic, readonly, copy, nullable) NSDictionary *addressDictionary API_DEPRECATED("Use #properties",
macos(10.8, 10.13), ios(5.0, 11.0), watchos(1.0, 4.0));
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Libr
ary/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h:73:63: note: 'addressDictionary' has been explicitly
marked deprecated here
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.m:23:73: warning: 'kABPersonAddressStreetKey' is deprecated: first deprecated in iOS 9.0 - use
CNPostalAddress.street [-Wdeprecated-declarations]
street = [[self addressDictionary] objectForKey:(NSString *)kABPersonAddressStreetKey];
^
In module 'AddressBook' imported from
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.m:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Libr
ary/Frameworks/AddressBook.framework/Headers/ABPerson.h:113:29: note: 'kABPersonAddressStreetKey' has been
explicitly marked deprecated here
AB_EXTERN const CFStringRef kABPersonAddressStreetKey AB_DEPRECATED("use CNPostalAddress.street");
^
3 warnings generated.
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Types/URLCredential.swift:14:25: warning: comparing non-optional value of type '[Any]' to 'nil' always returns
true
if certificates != nil {
~~~~~~~~~~~~ ^ ~~~
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
InAppBrowser/InAppBrowserWebViewController.swift:561:13: warning: setter for 'statusBarStyle' was deprecated in
iOS 9.0: Use -[UIViewController preferredStatusBarStyle]
UIApplication.shared.statusBarStyle = UIStatusBarStyle(rawValue: previousStatusBarStyle)!
^
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:86:25: warning: 'spotlightSuggestion' was deprecated in iOS 10.0: renamed to
'WKDataDetectorTypes.lookupSuggestion'
return .spotlightSuggestion
^
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:86:25: note: use 'WKDataDetectorTypes.lookupSuggestion' instead
return .spotlightSuggestion
^~~~~~~~~~~~~~~~~~~
WKDataDetectorTypes.lookupSuggestion
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:121:31: warning: 'spotlightSuggestion' was deprecated in iOS 10.0: renamed to
'WKDataDetectorTypes.lookupSuggestion'
if type.contains(.spotlightSuggestion) {
^
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:121:31: note: use 'WKDataDetectorTypes.lookupSuggestion' instead
if type.contains(.spotlightSuggestion) {
^~~~~~~~~~~~~~~~~~~
WKDataDetectorTypes.lookupSuggestion
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:216:21: warning: immutable value 'j' was never used; consider replacing with '_' or removing it
for j in ipv6.count...8 {
^
_
/* com.apple.ibtool.document.warnings */
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Storyboa
rds/WebView.storyboard:global: warning: This file is set to build for a version older than the deployment target.
Functionality may be limited. [9]
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:25:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/add_event.g.dart': No such file or directory
part 'animated_icons/data/add_event.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:26:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/arrow_menu.g.dart': No such file or directory
part 'animated_icons/data/arrow_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:27:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/close_menu.g.dart': No such file or directory
part 'animated_icons/data/close_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:28:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/ellipsis_search.g.dart': No such file or
directory
part 'animated_icons/data/ellipsis_search.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:29:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/event_add.g.dart': No such file or directory
part 'animated_icons/data/event_add.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:30:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/home_menu.g.dart': No such file or directory
part 'animated_icons/data/home_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:31:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/list_view.g.dart': No such file or directory
part 'animated_icons/data/list_view.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:32:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_arrow.g.dart': No such file or directory
part 'animated_icons/data/menu_arrow.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:33:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_close.g.dart': No such file or directory
part 'animated_icons/data/menu_close.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:34:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_home.g.dart': No such file or directory
part 'animated_icons/data/menu_home.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:35:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/pause_play.g.dart': No such file or directory
part 'animated_icons/data/pause_play.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:36:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/play_pause.g.dart': No such file or directory
part 'animated_icons/data/play_pause.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:37:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/search_ellipsis.g.dart': No such file or
directory
part 'animated_icons/data/search_ellipsis.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:38:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/view_list.g.dart': No such file or directory
part 'animated_icons/data/view_list.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:25:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/add_event.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/add_event.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:26:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/arrow_menu.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/arrow_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:27:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/close_menu.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/close_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:28:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/ellipsis_search.g.dart' as a part, because it
has no 'part of' declaration.
part 'animated_icons/data/ellipsis_search.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:29:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/event_add.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/event_add.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:30:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/home_menu.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/home_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:31:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/list_view.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/list_view.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:32:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_arrow.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/menu_arrow.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:33:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_close.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/menu_close.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:34:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_home.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/menu_home.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:35:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/pause_play.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/pause_play.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:36:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/play_pause.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/play_pause.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:37:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/search_ellipsis.g.dart' as a part, because it
has no 'part of' declaration.
part 'animated_icons/data/search_ellipsis.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:38:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/view_list.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/view_list.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:19:45: Error: Undefined
name '_$add_event'.
static const AnimatedIconData add_event = _$add_event;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:22:46: Error: Undefined
name '_$arrow_menu'.
static const AnimatedIconData arrow_menu = _$arrow_menu;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:25:46: Error: Undefined
name '_$close_menu'.
static const AnimatedIconData close_menu = _$close_menu;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:28:51: Error: Undefined
name '_$ellipsis_search'.
static const AnimatedIconData ellipsis_search = _$ellipsis_search;
^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:31:45: Error: Undefined
name '_$event_add'.
static const AnimatedIconData event_add = _$event_add;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:34:45: Error: Undefined
name '_$home_menu'.
static const AnimatedIconData home_menu = _$home_menu;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:37:45: Error: Undefined
name '_$list_view'.
static const AnimatedIconData list_view = _$list_view;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:40:46: Error: Undefined
name '_$menu_arrow'.
static const AnimatedIconData menu_arrow = _$menu_arrow;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:43:46: Error: Undefined
name '_$menu_close'.
static const AnimatedIconData menu_close = _$menu_close;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:46:45: Error: Undefined
name '_$menu_home'.
static const AnimatedIconData menu_home = _$menu_home;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:49:46: Error: Undefined
name '_$pause_play'.
static const AnimatedIconData pause_play = _$pause_play;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:52:46: Error: Undefined
name '_$play_pause'.
static const AnimatedIconData play_pause = _$play_pause;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:55:51: Error: Undefined
name '_$search_ellipsis'.
static const AnimatedIconData search_ellipsis = _$search_ellipsis;
^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:58:45: Error: Undefined
name '_$view_list'.
static const AnimatedIconData view_list = _$view_list;
^^^^^^^^^^^
lib/main.dart:58:10: Error: A non-null value must be returned since the return type 'Widget' doesn't allow null.
- 'Widget' is from 'package:flutter/src/widgets/framework.dart'
('../../flutter/packages/flutter/lib/src/widgets/framework.dart').
Widget build(BuildContext context) {
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/provider-5.0.0/lib/src/inherited_provider.dart:391:26: Warning:
Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
- 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'
('../../flutter/packages/flutter/lib/src/scheduler/binding.dart').
SchedulerBinding.instance!.addPostFrameCallback((_) {
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/percent_indicator-3.4.0/lib/linear_percent_indicator.dart:156:20:
Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart'
('../../flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance?.addPostFrameCallback((_) {
^
Failed to package /Users/gregoryew/flutter_apps/FelineFinder/feline_finder.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/gregoryew/flutter_apps/FelineFinder/feline_finder/ios/Pods/Pods.xcodeproj: warning: The iOS deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
15.5.99. (in target 'leveldb-library' from project 'Pods')
/Users/gregoryew/flutter_apps/FelineFinder/feline_finder/ios/Pods/Pods.xcodeproj: warning: The iOS deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
15.5.99. (in target 'OrderedSet' from project 'Pods')
/Users/gregoryew/flutter_apps/FelineFinder/feline_finder/ios/Pods/Pods.xcodeproj: warning: The iOS deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
15.5.99. (in target 'AppAuth' from project 'Pods')
/Users/gregoryew/flutter_apps/FelineFinder/feline_finder/ios/Pods/Pods.xcodeproj: warning: The iOS deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
15.5.99. (in target 'GoogleSignIn' from project 'Pods')
Result bundle written to path:
/var/folders/xp/fl30w5315b33hw_npc3wykb40000gn/T/flutter_tools.vcek1g/flutter_ios_build_temp_dirjbPPUe/temporary_
xcresult_bundle
Could not build the precompiled application for the device.
Error launching application on iPhone.
I tried deleting *.g.dart and running all the solutions I could find for similar problems but nothing works. It all seemed to occur after I added the following to my info.plist but not sure if this is related or not.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>comgooglemaps</string>
</array>
Also getting the following when I do a flutter run in vs code's output window but not sure if it is related:
Running "flutter pub get" in example...
Null check operator used on a null value
package:pub/src/entrypoint.dart 157:60 Entrypoint.lockFilePath
package:pub/src/entrypoint.dart 100:21 Entrypoint._loadLockFile
package:pub/src/entrypoint.dart 97:42 Entrypoint.lockFile
package:pub/src/entrypoint.dart 286:21 Entrypoint.acquireDependencies.<fn>
package:pub/src/entrypoint.dart 280:68 Entrypoint.acquireDependencies.<fn>
package:pub/src/log.dart 428:18 progress
package:pub/src/entrypoint.dart 280:26 Entrypoint.acquireDependencies
package:pub/src/command/get.dart 52:22 GetCommand.runProtected
package:pub/src/command.dart 183:45 PubCommand.run.<fn>
package:pub/src/command.dart 183:33 PubCommand.run.<fn>
dart:async new Future.sync
package:pub/src/utils.dart 109:12 captureErrors.wrappedCallback
dart:async runZonedGuarded
package:pub/src/utils.dart 126:5 captureErrors
package:pub/src/command.dart 183:13 PubCommand.run
package:args/command_runner.dart 209:27 CommandRunner.runCommand
package:pub/src/command_runner.dart 174:24 PubCommandRunner.runCommand
package:pub/src/command_runner.dart 159:20 PubCommandRunner.run
package:dartdev/dartdev.dart 45:56 runDartdev
/opt/s/w/ir/cache/builder/sdk/pkg/dartdev/bin/dartdev.dart 11:9 main
This is an unexpected error. The full log and other details are collected in:
/Users/gregoryew/flutter_apps/flutter/.pub-cache/log/pub_log.txt
Consider creating an issue on https://github.com/dart-lang/pub/issues/new
and attaching the relevant parts of that log file.
.
pub get failed (255; .)
exit code 255
I am pretty new to Flutter & Dart. What can I try?
I have similar error and after many tries I solved in this way:
Update MacOS
Update Xcode and command lines tools
Run flutter pub upgrade, flutter pub get in the project folder
Delete podfile.lock in ios folder of the project
Run cd ios, pod repo update, pod install in the project folder
Delete Runner.xcworkspace,Podfile.lock
then follow these steps
Error when trying to run my Flutter App with my m1 mac

Why can't java find twilio?

I am using Eclipse with Gradle. Twilio is listed as dependency. All versions are up to date. Code referencing Gradle will not compile and returns error messages that the Twilio classes do not exist. Code online is frustratingly outdated. I'm hoping someone here can help.
The Code I am running is very basic:
package SendAndReceiveSms;
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.Message;
import com.twilio.type.PhoneNumber;
public class SmsSender {
public static final String ACCOUNT_SID = "**Redacted**";
public static final String AUTH_TOKEN = "**Redacted**";
public static void main(String[] args) {
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
Message message = Message.creator(
new PhoneNumber("**redacted**"),
new PhoneNumber("**redacted**"),
"Message testing.")
.create();
System.out.println(message.getSid());
//sendMessage("**redacted**");
}
public void sendMessage(String numToSend) {
String n = numToSend;
Message message = Message.creator(
new PhoneNumber(n),
new PhoneNumber("+**(redacted)**"),
"Message testing.")
.create();
System.out.println(message.getSid());
}
}
dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api 'org.apache.commons:commons-math3:3.6.1'
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'com.google.guava:guava:28.2-jre'
//compile group: "com.twilio.sdk", name: "twilio", version: "7.45.+"
//compile group: "com.sparkjava", name: "spark-core", version: "2.7.1"
//compile group: "org.slf4j", name: "slf4j-simple", version: "1.7.21"
implementation 'org.slf4j:slf4j-simple:1.7.+'
implementation 'com.sparkjava:spark-core:2.5.+'
implementation group: 'com.twilio.sdk', name: 'twilio', version: '8.11.0'
//implementation 'com.twilio.sdk:twilio:7.+'
// implementation 'com.twilio.sdk', name: 'twilio', version: '8.11.0'
//runtimeOnly group: 'com.twilio.sdk', name: 'twilio', version: '8.11.0'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
}
Error code in Terminal:
SmsSender.java:3: error: package com.twilio does not exist
import com.twilio.Twilio;
^
SmsSender.java:4: error: package com.twilio.rest.api.v2010.account does not exist
import com.twilio.rest.api.v2010.account.Message;
^
SmsSender.java:5: error: package com.twilio.type does not exist
import com.twilio.type.PhoneNumber;
^
SmsSender.java:12: error: cannot find symbol
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
^
symbol: variable Twilio
location: class SmsSender
SmsSender.java:13: error: cannot find symbol
Message message = Message.creator(
^
symbol: class Message
location: class SmsSender
SmsSender.java:14: error: cannot find symbol
new PhoneNumber("..."),
^
symbol: class PhoneNumber
location: class SmsSender
SmsSender.java:15: error: cannot find symbol
new PhoneNumber("..."),
^
symbol: class PhoneNumber
location: class SmsSender
SmsSender.java:13: error: cannot find symbol
Message message = Message.creator(
^
symbol: variable Message
location: class SmsSender
SmsSender.java:24: error: cannot find symbol
Message message = Message.creator(
^
symbol: class Message
location: class SmsSender
SmsSender.java:25: error: cannot find symbol
new PhoneNumber(n),
^
symbol: class PhoneNumber
location: class SmsSender
SmsSender.java:26: error: cannot find symbol
new PhoneNumber("..."),
^
symbol: class PhoneNumber
location: class SmsSender
SmsSender.java:24: error: cannot find symbol
Message message = Message.creator(
^
symbol: variable Message
location: class SmsSender
12 errors
error: compilation failed
I don't see any problem with your project setup. You can compare it to this reference project.
So, I suspect the problem you're seeing is related to how Eclipse imports Gradle projects. I'm not a regular Eclipse user but I did try it out for this question. When I imported the project in the above repo I saw import errors similar to yours. I was able to fix them by first telling Eclipse that this is a Gradle project (Project context menu > Configure > Add Gradle Nature) then refreshing the project (Project context menu > Gradle > Refresh Gradle Project). I got those steps from this answer. Then everything was working.

Invalid Depfile Flutter Web

I am working on a flutter web project and made no updates to the file but, it seems like there may be a new flutter update that have caused an Invalid Depfile error. I ran "Flutter clean" but, that did not work. It seems like many of the imports arent being
Invalid depfile: /Users/hsi/Documents/buddieswebapp/.dart_tool/flutter_build/2d3c585b346bbabf643bbc9bd57ff66b/kernel_snapshot.d
Invalid depfile: /Users/hsi/Documents/buddieswebapp/.dart_tool/flutter_build/2d3c585b346bbabf643bbc9bd57ff66b/kernel_snapshot.d
lib/Account/AccountDetailsPage.dart:10:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
lib//HomeScreens/HomePage.dart:19:8: Error: Not found: 'dart:html'
import 'dart:html';
^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_web-1.0.9/lib/image_picker_web.dart:6:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
lib/Orders/Tracking/TrackingPage.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html';
^
Error: Could not resolve the package 'google_maps' in 'package:google_maps/google_maps.dart'.
lib/DispensaryPages/HomeScreens/Map/Map.dart:5:8: Error: Not found: 'dart:html'
import 'dart:html';
^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_web-1.0.9/lib/src/web_image_picker.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
lib/Orders/Tracking/TrackingPage.dart:7:8: Error: Not found: 'package:google_maps/google_maps.dart'
import 'package:google_maps/google_maps.dart' hide Icon;
^
lib/DispensaryPages/HomeScreens/Map/Map.dart:4:8: Error: Not found: 'package:google_maps/google_maps.dart'
import 'package:google_maps/google_maps.dart';
^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.3-nullsafety.3/lib/js.dart:8:1: Error: Not found: 'dart:js'
export 'dart:js' show allowInterop, allowInteropCaptureThis;
^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:9:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:6:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:5:8: Error: Not found: 'dart:html'
import 'dart:html';
^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/facebook_web_sdk-0.0.9/lib/src/fb.dart:2:8: Error: Not found: 'dart:js'
import 'dart:js';
^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_web_image_picker-0.0.2/lib/src/web_image_picker.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/dart_browser_loader-0.0.6+1/lib/src/script.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html';
^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/dart_browser_loader-0.0.6+1/lib/src/script.dart:4:8: Error: Not found: 'dart:js'
import 'dart:js' as js;
^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/dart_browser_loader-0.0.6+1/lib/src/style.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html';
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:223:31: Error: Type 'html.EventListener' not found.
void removePopStateListener(html.EventListener fn);
^^^^^^^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:287:3: Error: Type 'html.Location' not found.
html.Location get _location => html.window.location;
^^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:288:3: Error: Type 'html.History' not found.
html.History get _history => html.window.history;
^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:291:28: Error: Type 'html.EventListener' not found.
void addPopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:296:31: Error: Type 'html.EventListener' not found.
void removePopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:7: Error: Type 'AnchorElement' not found.
final AnchorElement _urlParsingNode = AnchorElement();
^^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:7: Error: Type 'Element' not found.
final Element? _baseElement = document.querySelector('base');
^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/dart_browser_loader-0.0.6+1/lib/src/script.dart:11:8: Error: Type 'ScriptElement' not found.
Future<ScriptElement> loadScript(
^^^^^^^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/dart_browser_loader-0.0.6+1/lib/src/style.dart:10:8: Error: Type 'StyleElement' not found.
Future<StyleElement> loadInlineStyle(String style, {String id}) {
^^^^^^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/dart_browser_loader-0.0.6+1/lib/src/style.dart:28:8: Error: Type 'LinkElement' not found.
Future<LinkElement> loadLink(
^^^^^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/dart_browser_loader-0.0.6+1/lib/src/utils.dart:4:5: Error: Type 'Element' not found.
Map<Element, Future> _mapper = {};
^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/dart_browser_loader-0.0.6+1/lib/src/utils.dart:6:30: Error: Type 'Element' not found.
Future<T> waitLoad<T extends Element>(T element) {
^^^^^^^
lib/Account/AccountDetailsPage.dart:32:10: Error: 'File' isn't a type.
html.File mediaFile =
^^^^
lib/Account/AccountDetailsPage.dart:33:18: Error: Method not found: 'File'.
new html.File(mediaData.data, mediaData.fileName, {'type': mimeType});
^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_web-1.0.9/lib/image_picker_web.dart:33:16: Error: 'FileUploadInputElement' isn't a type.
final html.FileUploadInputElement input = html.FileUploadInputElement();
^^^^^^^^^^^^^^^^^^^^^^
^^^^
lib/Orders/Tracking/TrackingPage.dart:108:22: Error: The method 'Marker' isn't defined for the class '_TrackingPage'.
- '_TrackingPage' is from 'package:BuddiesWebApp/Orders/Tracking/TrackingPage.dart' ('lib/Orders/Tracking/TrackingPage.dart').
Try correcting the name to the name of an existing method, or defining a method named 'Marker'.
final marker = Marker(MarkerOptions()
^^^^^^
lib/Orders/Tracking/TrackingPage.dart:108:29: Error: The method 'MarkerOptions' isn't defined for the class '_TrackingPage'.
- '_TrackingPage' is from 'package:BuddiesWebApp/Orders/Tracking/TrackingPage.dart' ('lib/Orders/Tracking/TrackingPage.dart').
Try correcting the name to the name of an existing method, or defining a method named 'MarkerOptions'.
final marker = Marker(MarkerOptions()
^^^^^^^^^^^^^
lib/Orders/Tracking/TrackingPage.dart:109:22: Error: The method 'LatLng' isn't defined for the class '_TrackingPage'.
- '_TrackingPage' is from 'package:BuddiesWebApp/Orders/Tracking/TrackingPage.dart' ('lib/Orders/Tracking/TrackingPage.dart').
Try correcting the name to the name of an existing method, or defining a method named 'LatLng'.
..position = LatLng(order.venue.lat, order.venue.lng)
^^^^^^
lib/Orders/Tracking/TrackingPage.dart:113:26: Error: The method 'Marker' isn't defined for the class '_TrackingPage'.
- '_TrackingPage' is from 'package:BuddiesWebApp/Orders/Tracking/TrackingPage.dart' ('lib/Orders/Tracking/TrackingPage.dart').
Try correcting the name to the name of an existing method, or defining a method named 'Marker'.
final userMarker = Marker(MarkerOptions()
^^^^^^
lib/Orders/Tracking/TrackingPage.dart:113:33: Error: The method 'MarkerOptions' isn't defined for the class '_TrackingPage'.
- '_TrackingPage' is from 'package:BuddiesWebApp/Orders/Tracking/TrackingPage.dart' ('lib/Orders/Tracking/TrackingPage.dart').
Try correcting the name to the name of an existing method, or defining a method named 'MarkerOptions'.
final userMarker = Marker(MarkerOptions()
^^^^^^^^^^^^^
lib/Orders/Tracking/TrackingPage.dart:114:22: Error: The method 'LatLng' isn't defined for the class '_TrackingPage'.
- '_TrackingPage' is from 'package:BuddiesWebApp/Orders/Tracking/TrackingPage.dart' ('lib/Orders/Tracking/TrackingPage.dart').
Try correcting the name to the name of an existing method, or defining a method named 'LatLng'.
..position = LatLng(userLat, userLong)
^^^^^^
lib/DispensaryPages/HomeScreens/Map/Map.dart:40:28: Error: Method not found: 'MapOptions'.
final mapOptions = new MapOptions()
^^^^^^^^^^
lib/DispensaryPages/HomeScreens/Map/Map.dart:51:11: Error: Method not found: 'GMap'.
new GMap(elem, mapOptions);
^^^^
lib/DispensaryPages/HomeScreens/Map/Map.dart:44:8: Error: Getter not found: 'platformViewRegistry'.
ui.platformViewRegistry.registerViewFactory(htmlId, (int viewId) {
^^^^^^^^^^^^^^^^^^^^
lib/DispensaryPages/HomeScreens/Map/Map.dart:37:20: Error: The method 'LatLng' isn't defined for the class '_DispensaryMap'.
- '_DispensaryMap' is from 'package:BuddiesWebApp/DispensaryPages/HomeScreens/Map/Map.dart' ('lib/DispensaryPages/HomeScreens/Map/Map.dart').
Try correcting the name to the name of an existing method, or defining a method named 'LatLng'.
var myLatLng = LatLng(myLat, myLong);
^^^^^^
lib/DispensaryPages/HomeScreens/Map/Map.dart:38:27: Error: The method 'LatLng' isn't defined for the class '_DispensaryMap'.
- '_DispensaryMap' is from 'package:BuddiesWebApp/DispensaryPages/HomeScreens/Map/Map.dart' ('lib/DispensaryPages/HomeScreens/Map/Map.dart').
Try correcting the name to the name of an existing method, or defining a method named 'LatLng'.
var defaultLocation = LatLng(40.7128, -74.0060);
^^^^^^
lib/DispensaryPages/HomeScreens/Map/Map.dart:45:20: Error: The method 'DivElement' isn't defined for the class '_DispensaryMap'.
- '_DispensaryMap' is from 'package:BuddiesWebApp/DispensaryPages/HomeScreens/Map/Map.dart' ('lib/DispensaryPages/HomeScreens/Map/Map.dart').
Try correcting the name to the name of an existing method, or defining a method named 'DivElement'.
final elem = DivElement()
^^^^^^^^^^
lib/DispensaryPages/HomeScreens/Map/Map.dart:53:19: Error: The method 'GMap' isn't defined for the class '_DispensaryMap'.
- '_DispensaryMap' is from 'package:BuddiesWebApp/DispensaryPages/HomeScreens/Map/Map.dart' ('lib/DispensaryPages/HomeScreens/Map/Map.dart').
Try correcting the name to the name of an existing method, or defining a method named 'GMap'.
final map = GMap(elem, mapOptions);
^^^^
lib/DispensaryPages/HomeScreens/Map/Map.dart:56:13: Error: The method 'InfoWindow' isn't defined for the class '_DispensaryMap'.
- '_DispensaryMap' is from 'package:BuddiesWebApp/DispensaryPages/HomeScreens/Map/Map.dart' ('lib/DispensaryPages/HomeScreens/Map/Map.dart').
Try correcting the name to the name of an existing method, or defining a method named 'InfoWindow'.
InfoWindow(InfoWindowOptions()..content = 'contentString');
^^^^^^^^^^
lib/DispensaryPages/HomeScreens/Map/Map.dart:56:24: Error: The method 'InfoWindowOptions' isn't defined for the class '_DispensaryMap'.
- '_DispensaryMap' is from 'package:BuddiesWebApp/DispensaryPages/HomeScreens/Map/Map.dart' ('lib/DispensaryPages/HomeScreens/Map/Map.dart').
Try correcting the name to the name of an existing method, or defining a method named 'InfoWindowOptions'.
InfoWindow(InfoWindowOptions()..content = 'contentString');
^^^^^^^^^^^^^^^^^
lib/DispensaryPages/HomeScreens/Map/Map.dart:58:24: Error: The method 'Marker' isn't defined for the class '_DispensaryMap'.
- '_DispensaryMap' is from 'package:BuddiesWebApp/DispensaryPages/HomeScreens/Map/Map.dart' ('lib/DispensaryPages/HomeScreens/Map/Map.dart').
Try correcting the name to the name of an existing method, or defining a method named 'Marker'.
final marker = Marker(MarkerOptions()
^^^^^^
lib/DispensaryPages/HomeScreens/Map/Map.dart:58:31: Error: The method 'MarkerOptions' isn't defined for the class '_DispensaryMap'.
- '_DispensaryMap' is from 'package:BuddiesWebApp/DispensaryPages/HomeScreens/Map/Map.dart' ('lib/DispensaryPages/HomeScreens/Map/Map.dart').
Try correcting the name to the name of an existing method, or defining a method named 'MarkerOptions'.
final marker = Marker(MarkerOptions()
^^^^^^^^^^^^^
lib/DispensaryPages/HomeScreens/Map/Map.dart:61:15: Error: The method 'LatLng' isn't defined for the class '_DispensaryMap'.
- '_DispensaryMap' is from 'package:BuddiesWebApp/DispensaryPages/HomeScreens/Map/Map.dart' ('lib/DispensaryPages/HomeScreens/Map/Map.dart').
Try correcting the name to the name of an existing method, or defining a method named 'LatLng'.
LatLng(currentDispensaries[i].lat, currentDispensaries[i].lng)
^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_web-1.0.9/lib/src/web_image_picker.dart:7:16: Error: 'FileUploadInputElement' isn't a type.
final html.FileUploadInputElement input = html.FileUploadInputElement();
^^^^^^^^^^^^^^^^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_web-1.0.9/lib/src/web_image_picker.dart:7:47: Error: Method not found: 'FileUploadInputElement'.
final html.FileUploadInputElement input = html.FileUploadInputElement();
^^^^^^^^^^^^^^^^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_web-1.0.9/lib/src/web_image_picker.dart:12:20: Error: Method not found: 'FileReader'.
final reader = html.FileReader();
^^^^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_web-1.0.9/lib/src/web_image_picker.dart:28:16: Error: 'FileUploadInputElement' isn't a type.
final html.FileUploadInputElement input = html.FileUploadInputElement();
^^^^^^^^^^^^^^^^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_web-1.0.9/lib/src/web_image_picker.dart:28:47: Error: Method not found: 'FileUploadInputElement'.
final html.FileUploadInputElement input = html.FileUploadInputElement();
^^^^^^^^^^^^^^^^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_web-1.0.9/lib/src/web_image_picker.dart:33:20: Error: Method not found: 'FileReader'.
final reader = html.FileReader();
^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:45:14: Error: Method not found: 'allowInterop'.
getPath: allowInterop(strategy.getPath),
^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:46:15: Error: Method not found: 'allowInterop'.
getState: allowInterop(strategy.getState),
^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:47:26: Error: Method not found: 'allowInterop'.
addPopStateListener: allowInterop(strategy.addPopStateListener),
^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:48:25: Error: Method not found: 'allowInterop'.
prepareExternalUrl: allowInterop(strategy.prepareExternalUrl),
^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:49:16: Error: Method not found: 'allowInterop'.
pushState: allowInterop(strategy.pushState),
^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:50:19: Error: Method not found: 'allowInterop'.
replaceState: allowInterop(strategy.replaceState),
^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:51:9: Error: Method not found: 'allowInterop'.
go: allowInterop(strategy.go),
^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:76:53: Error: 'EventListener' isn't a type.
external ui.VoidCallback addPopStateListener(html.EventListener fn);
^^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:34:44: Error: 'EventListener' isn't a type.
ui.VoidCallback addPopStateListener(html.EventListener fn);
^^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:97:44: Error: 'EventListener' isn't a type.
ui.VoidCallback addPopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:217:33: Error: 'EventListener' isn't a type.
void addPopStateListener(html.EventListener fn);
^^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:223:36: Error: 'EventListener' isn't a type.
void removePopStateListener(html.EventListener fn);
^^^^^^^^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:287:39: Error: Getter not found: 'window'.
html.Location get _location => html.window.location;
^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:288:37: Error: Getter not found: 'window'.
html.History get _history => html.window.history;
^^^^^^
../../Desktop/flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:291:33: Error: 'EventListener' isn't a type.
void addPopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^
^^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/dart_browser_loader-0.0.6+1/lib/src/style.dart:39:15: Error: Method not found: 'LinkElement'.
element = LinkElement()
^^^^^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/dart_browser_loader-0.0.6+1/lib/src/style.dart:46:5: Error: Getter not found: 'document'.
document.head.append(element);
^^^^^^^^
../../Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/dart_browser_loader-0.0.6+1/lib/src/utils.dart:4:5: Error: 'Element' isn't a type.
Map<Element, Future> _mapper = {};
^^^^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)
#0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:32:7)
#1 asFileUri (package:vm/kernel_front_end.dart:599:37)
#2 writeDepfile (package:vm/kernel_front_end.dart:738:21)
<asynchronous suspension>
#3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:554:9)
<asynchronous suspension>
#4 starter (package:flutter_frontend_server/server.dart:180:12)
<asynchronous suspension>
#5 main (file:///opt/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:13:24)
<asynchronous suspension>
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
** BUILD FAILED **
I ran Flutter clean, flutter pub get, flutter package get and re-installed but, I still can get it to run.I'm not sure which package I need to update. Thanks in advance.
DEBUG DUMP:
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set
to 10.6, but the range of supported deployment target versions is 10.9
to 11.1.99. (in target 'nanopb' from project 'Pods')
** BUILD FAILED **
Try as follow:
Delete dart:html in your flutter project if exists.
Do flutter clean and flutter pub get and try running project.
If still not solved,
Open Android Studio's SDK Manager.
Go to the Android SDK tab.
Under SDK Tools, uncheck Hide Obsolete Packages.
Install Android SDK Tools (Obsolete).
If you have upgrade AS recently that will fix the issue.
If still not solved
Change flutter channel to stable by
flutter channel stable
flutter upgrade
flutter run --debug
--debug args to get more detail when running flutter app.
This bug has been fixed from flutter side, please check with android_sdk on your computer if still not solved (let me know --debug errors if the problem remains).
I solved it by removing:
import 'dart:html';
Since I am not using website, but it was included in the base of create flutter project on the top of the main.dart file.
Make sure to follow the steps of #Blasanka after removing this line:
flutter clean
flutter pub get
The problem is definitely that in future when you need to convert to website, you have only extended your problem to different date. Unless you will not make web version.

Project won't compile because of Android X

I've cloned a project on Github. It uses different plugins.
dependencies:
flutter:
sdk: flutter
cupertino_icons: 0.1.2
firebase_auth: 0.7.0
google_sign_in: 3.2.4
cloud_firestore: 0.8.2+3
image_picker: 0.4.12+1
shared_preferences: 0.4.3
firebase_storage: 1.0.4
cached_network_image: 0.7.0
intl: 0.15.7
There is blog post which advises keeping versions the same. My problem is the image_picker plugin. Looking around stackoverflow it recommends using version 0.4.12+1 if you don't want to migrate app to Android X. Here is my error
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerPlugin.java:8: error: package android.support.annotation does not exist
import android.support.annotation.VisibleForTesting;
^
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:15: error: package android.support.annotation does not exist
import android.support.annotation.VisibleForTesting;
^
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerPlugin.java:40: error: cannot find symbol
#VisibleForTesting
^
symbol: class VisibleForTesting
location: class ImagePickerPlugin
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:68: error: cannot find symbol
#VisibleForTesting static final int REQUEST_CODE_CHOOSE_IMAGE_FROM_GALLERY = 2342;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:69: error: cannot find symbol
#VisibleForTesting static final int REQUEST_CODE_TAKE_IMAGE_WITH_CAMERA = 2343;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:70: error: cannot find symbol
#VisibleForTesting static final int REQUEST_EXTERNAL_IMAGE_STORAGE_PERMISSION = 2344;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:71: error: cannot find symbol
#VisibleForTesting static final int REQUEST_CAMERA_IMAGE_PERMISSION = 2345;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:72: error: cannot find symbol
#VisibleForTesting static final int REQUEST_CODE_CHOOSE_VIDEO_FROM_GALLERY = 2352;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:73: error: cannot find symbol
#VisibleForTesting static final int REQUEST_CODE_TAKE_VIDEO_WITH_CAMERA = 2353;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:74: error: cannot find symbol
#VisibleForTesting static final int REQUEST_EXTERNAL_VIDEO_STORAGE_PERMISSION = 2354;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:75: error: cannot find symbol
#VisibleForTesting static final int REQUEST_CAMERA_VIDEO_PERMISSION = 2355;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:77: error: cannot find symbol
#VisibleForTesting final String fileProviderName;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
/Users/gerardhorgan/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:164: error: cannot find symbol
#VisibleForTesting
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
13 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':image_picker:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* 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.
BUILD FAILED in 2s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
*******************************************************************************************
Finished with error: Gradle task assembleDebug failed with exit code 1
I'm wondering what might be causing the incompatibilities prevent my app from compiling?
You need to flow the documentation for AndroidX compatibility
The best option is migrate the app for androidX. Follow the steps in android-studio:
1) Remove all your dependencies of your pubspec file and run flutter packages get
2) Open only android module of your app in android-studio. You can do this with right click on your project root directory > flutter > Open android module in android studio
3) After open only android module in android-studio menu go to Refactor > MigrateToAndoridX...
4) Do the migration!
5) Close android module android-studio instance and go back to your flutter project
6) Insert all your dependencies in pubspec file and run flutter packages get
Use image_picker: ^0.6.6+1 and add AndroidManifest.xml following:
<uses-permission android:name="android.permission.INTERNET"/>
This way worked for me!

GWT Failed to load module

I am new to Google app engine, and I'm working on a project. I just created an application and when I try to run it, it shows the error:
[ERROR] [ukstudentfeedback] Failed to load module 'ukstudentfeedback' from user agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2' at localhost:51937.
Below is a snap shot of my code:
package com.ukstudentfeedback.client;
import java.io.UnsupportedEncodingException;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
public class Ukstudentfeedback implements EntryPoint{
// ...
public void onModuleLoad()
{
java.lang.System.out.println("I finally worked!");
final Button sendButton;
final TextBox toField, fromField, subjectField, messageField;
sendButton = new Button("Send");
toField = new TextBox();
fromField = new TextBox();
subjectField = new TextBox();
messageField = new TextBox();
sendButton.addStyleName("sendButton");
toField.setText("Testing");
// Add the nameField and sendButton to the RootPanel
// Use RootPanel.get() to get the entire body element
RootPanel.get("sendButton").add(sendButton);
RootPanel.get("To").add(toField);
RootPanel.get("From").add(fromField);
RootPanel.get("Subject").add(subjectField);
RootPanel.get("Message").add(messageField);
// Focus the cursor on the to field when the app loads
toField.setFocus(true);
toField.selectAll();
sendButton.setEnabled(true);
// Create a handler for the sendButton and nameField
class MyHandler implements ClickHandler, KeyUpHandler {
/**
* Fired when the user clicks on the sendButton.
*/
public void onClick(ClickEvent event) {
java.lang.System.out.println("I have been clisked");
sendMessage();
}
#Override
public void onKeyUp(KeyUpEvent event) {
// TODO Auto-generated method stub
}
public void sendMessage()
{
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
/*
* Get all the user's inputs
*/
String to = toField.getText();
String from = fromField.getText();
String subject = subjectField.getText();
String message = messageField.getText();
try
{
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from, "Admin"));
msg.addRecipient(Message.RecipientType.TO,
new InternetAddress(to, "Mr. User"));
msg.setSubject(subject);
msg.setText(message);
Transport.send(msg);
}
catch (AddressException e)
{
// ...
} catch (MessagingException e)
{
// ...
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
// Add a handler to send the name to the server
MyHandler handler = new MyHandler();
sendButton.addClickHandler(handler);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='ukstudentfeedback'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<inherits name='com.google.gwt.user.theme.clean.Clean'/>
<!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
<!-- Other module inherits -->
<inherits name='com.ukstudentfeedback.Ukstudentfeedback'/>
<!-- Specify the app entry point class. -->
<entry-point class='com.ukstudentfeedback.client.Ukstudentfeedback'/>
<!-- Specify the paths for translatable code -->
<source path='client'/>
<source path='shared'/>
</module>
Errors:
[DEBUG] [ukstudentfeedback] - Validating newly compiled units
[TRACE] [ukstudentfeedback] - Finding entry point classes
[ERROR] [ukstudentfeedback] - Errors in 'file:/Users/umajosiah/Programming/Java/eclipse/workspace/ukstudentfeedback/src/com/ukstudentfeedback/client/Ukstudentfeedback.java'
[ERROR] [ukstudentfeedback] - Line 8: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 9: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 10: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 11: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 12: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 13: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 14: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 80: Session cannot be resolved to a type
[ERROR] [ukstudentfeedback] - Line 80: Session cannot be resolved
[ERROR] [ukstudentfeedback] - Line 91: Message cannot be resolved to a type
[ERROR] [ukstudentfeedback] - Line 91: MimeMessage cannot be resolved to a type
[ERROR] [ukstudentfeedback] - Line 92: InternetAddress cannot be resolved to a type
[ERROR] [ukstudentfeedback] - Line 93: Message cannot be resolved
[ERROR] [ukstudentfeedback] - Line 94: InternetAddress cannot be resolved to a type
[ERROR] [ukstudentfeedback] - Line 97: Transport cannot be resolved
[ERROR] [ukstudentfeedback] - Line 100: AddressException cannot be resolved to a type
[ERROR] [ukstudentfeedback] - Line 103: MessagingException cannot be resolved to a type
[ERROR] [ukstudentfeedback] - Unable to find type 'com.ukstudentfeedback.client.Ukstudentfeedback'
[ERROR] [ukstudentfeedback] - Hint: Previous compiler errors may have made this type unavailable
[ERROR] [ukstudentfeedback] - Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[ERROR] [ukstudentfeedback] - Failed to load module 'ukstudentfeedback' from user agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2' at localhost:51937
The problem is that you're trying to use unimplemented java classes on the client. The mailing needs to happen from the server, and the server can never pass back anything from the javax.mail classes.
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
None of this is serializable, and none of it can be turned to Javascript, because none of it is implemented by GWT. Read more about this here and here.
You can use only the classes that are emulated by GWT. Package javax.mail is not emulated.
You have to do this on the server.
[ERROR] [ukstudentfeedback] - Line 8: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 9: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 10: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 11: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 12: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 13: The import javax.mail cannot be resolved
[ERROR] [ukstudentfeedback] - Line 14: The import javax.mail cannot be resolved
Pls see link below:
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html