-
Notifications
You must be signed in to change notification settings - Fork 375
Unable to package app for web- getting this error everytime The plugin flutter_native_splash
doesn't have a main class defined in
#3270
Replies: 1 comment · 5 replies
-
Cannot reproduce with Flet 0.22.1 |
Beta Was this translation helpful? Give feedback.
All reactions
-
Then what should I do :( please help |
Beta Was this translation helpful? Give feedback.
All reactions
-
I don't know why Android part is called when you build a web app. Are you building web or APK? |
Beta Was this translation helpful? Give feedback.
All reactions
-
I am building a web |
Beta Was this translation helpful? Give feedback.
All reactions
-
Could you please provide a detailed log with |
Beta Was this translation helpful? Give feedback.
All reactions
-
C:\Users\alikh\OneDrive\Desktop\Chat>flet build web --no-web-splash -vv • Creating default icons Android ✓ Successfully generated launcher icons ✅ Native splash complete. OK C:\Users\alikh\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_native_splash-2.3.7\android\src\main\java\net\jonhanson\fl C:\Users\alikh\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_native_splash-2.3.7\android\src\main\kotlin\net\jonhanson [ +256 ms] ensureAnalyticsSent: 255ms Run subprocess: ['C:\flutter\bin\flutter.BAT', '--version'] |
Beta Was this translation helpful? Give feedback.
All reactions
This discussion was converted from issue #3238 on May 10, 2024 17:41.
-
PS C:\Users\alikh\OneDrive\Desktop\Chat> flet build web --no-web-splash
Creating Flutter bootstrap project...OK
Customizing app icons and splash images...OK
Generating app icons...OK
Generating splash screens...OK
Packaging Python app...OK
Building web app...Resolving dependencies...
file_picker 6.2.1 (8.0.3 available)
fl_chart 0.65.0 (0.67.0 available)
flet 0.21.2 (0.22.0 available)
flutter_lints 2.0.3 (3.0.2 available)
flutter_markdown 0.6.23 (0.7.1 available)
flutter_native_splash 2.3.7 (2.4.0 available)
js 0.6.7 (0.7.1 available)
leak_tracker_flutter_testing 2.0.1 (3.0.5 available)
leak_tracker_testing 2.0.3 (3.0.1 available)
lints 2.1.1 (3.0.0 available)
material_color_utilities 0.8.0 (0.11.1 available)
meta 1.14.0 (1.15.0 available)
package_info_plus 4.2.0 (8.0.0 available)
package_info_plus_platform_interface 2.0.1 (3.0.0 available)
petitparser 5.4.0 (6.0.2 available)
sensors_plus 4.0.2 (5.0.1 available)
test_api 0.6.1 (0.7.1 available)
toml 0.14.0 (0.15.0 available)
vm_service 13.0.0 (14.2.2 available)
web_socket_channel 2.4.5 (3.0.0 available)
xml 6.3.0 (6.5.0 available)
Got dependencies!
21 packages have newer versions incompatible with dependency constraints.
Try
flutter pub outdated
for more information.The plugin
flutter_native_splash
doesn't have a main class defined inC:\Users\alikh\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_native_splash-2.3.7\android\src\main\java\net\jonhanson\flutter_native_splash\FlutterNativeSplashPlugin.java or
C:\Users\alikh\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_native_splash-2.3.7\android\src\main\kotlin\net\jonhanson\flutter_native_splash\FlutterNativeSplashPlugin.kt. This is likely to due to an incorrect
androidPackage: net.jonhanson.flutter_native_splash
ormainClass
entry in the plugin's pubspec.yaml.If you are the author of this plugin, fix the
androidPackage
entry or move the main class to any of locations used above. Otherwise, please contact the author of this plugin and consider using a differentplugin in the meanwhile.
Error building Flet app - see the log of failed command above.
Beta Was this translation helpful? Give feedback.
All reactions