fluttercommunity / flutter_webview_plugin

Community WebView Plugin - Allows Flutter to communicate with a native WebView.
https://pub.dev/packages/flutter_webview_plugin
Other
1.48k stars 933 forks source link

crush while debug #894

Open ektelat opened 3 years ago

ektelat commented 3 years ago

System info

Issue occurs on: Android Plugin version: 0.3.11 Flutter doctor output:

mohammedektelat@Mini-mohammed thioffices % flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel dev, 2.2.0-10.1.pre, on macOS 11.2.3 20D91 darwin-arm, locale ar-IL) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] VS Code (version 1.55.2) [✓] Connected device (2 available)

• No issues found!

Steps to Reproduce

[ ] > Task :sqflite:generateDebugResources UP-TO-DATE [ ] > Task :sqflite:packageDebugResources UP-TO-DATE [ ] > Task :url_launcher:generateDebugResValues UP-TO-DATE [ ] > Task :url_launcher:compileDebugRenderscript NO-SOURCE [ ] > Task :url_launcher:generateDebugResources UP-TO-DATE [ ] > Task :url_launcher:packageDebugResources UP-TO-DATE [ ] > Task :vibration:generateDebugResValues UP-TO-DATE [ ] > Task :vibration:compileDebugRenderscript NO-SOURCE [ ] > Task :vibration:generateDebugResources UP-TO-DATE [ ] > Task :vibration:packageDebugResources UP-TO-DATE [ +293 ms] > Task :app:mergeDebugResources FAILED [ +1 ms] /Users/mohammedektelat/Library/Mobile Documents/com~apple~CloudDocs/dev/newthioffices/thioffices/build/flutter_webview_plugin/intermediates/packaged_res/debug/xml 2/filepaths.xml: Resource and asset merger: Can't determine type for tag '' [ +4 ms] FAILURE: Build failed with an exception. [ ] What went wrong: [ ] Execution failed for task ':app:mergeDebugResources'. [ ] > /Users/mohammedektelat/Library/Mobile Documents/com~apple~CloudDocs/dev/newthioffices/thioffices/build/flutter_webview_plugin/intermediates/packaged_res/debug/xml 2/filepaths.xml: Error: Can't determine type for tag '' [ ] 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 [ ] BUILD FAILED in 4s [ +2 ms] 118 actionable tasks: 4 executed, 114 up-to-date [ +498 ms] Running Gradle task 'assembleDebug'... (completed in 5.1s) [+3296 ms] Exception: Gradle task assembleDebug failed with exit code 1 [ +12 ms] "flutter run" took 12,015ms. [ +14 ms]

0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)

       #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:663:9)
       <asynchronous suspension>
       #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1043:27)
       <asynchronous suspension>
       #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
       <asynchronous suspension>
       #4      CommandRunner.runCommand (package:args/command_runner.dart:196:13)
       <asynchronous suspension>
       #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:284:9)
       <asynchronous suspension>
       #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
       <asynchronous suspension>
       #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:232:5)
       <asynchronous suspension>
       #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
       <asynchronous suspension>
       #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
       <asynchronous suspension>
       #10     main (package:flutter_tools/executable.dart:91:3)
       <asynchronous suspension>

flutter analyze Analyzing thioffices...

info • Unused import: 'package:flutter_sound/flutter_sound.dart' • lib/Bubble.dart:5:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: Bubble.message, Bubble.time, Bubble.mission, Bubble.msgType, Bubble.date, Bubble.audioPlayer, Bubble.lastAudio, Bubble.usersNames, Bubble.width, Bubble.userKey • lib/Bubble.dart:17:7 • must_be_immutable info • The value of the local variable 'topPadding' isn't used • lib/Bubble.dart:453:12 • unused_local_variable info • 'showSnackBar' is deprecated and shouldn't be used. Use ScaffoldMessenger.showSnackBar. This feature was deprecated after v1.23.0-14.0.pre. • lib/CameraPage.dart:104:31 • deprecated_member_use info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/CameraPage.dart:150:13 • deprecated_member_use info • The value of the local variable 'screenHeight' isn't used • lib/CleintPage.dart:65:12 • unused_local_variable info • Name non-constant identifiers using lowerCamelCase • lib/CleintPage.dart:356:3 • non_constant_identifier_names info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/CleintPage.dart:549:15 • deprecated_member_use info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/DialogBox.dart:20:13 • deprecated_member_use info • Unused import: 'package:flutter/gestures.dart' • lib/EntryField.dart:4:8 • unused_import info • The value of the field '_singlScrolController' isn't used • lib/EntryField.dart:40:20 • unused_field info • The value of the field '_firebase' isn't used • lib/FileUploadToFirebase.dart:82:26 • unused_field info • Avoid empty statements • lib/FileUploadToFirebase.dart:177:7 • empty_statements info • The value of the local variable 'isOk' isn't used • lib/FileUploadToFirebase.dart:245:14 • unused_local_variable info • Unused import: 'dart:async' • lib/HomePage.dart:2:8 • unused_import info • 'title' is deprecated and shouldn't be used. Use "label" instead, as it allows for an improved text-scaling experience. This feature was deprecated after v1.19.0. • lib/HomePage.dart:205:15 • deprecated_member_use info • 'title' is deprecated and shouldn't be used. Use "label" instead, as it allows for an improved text-scaling experience. This feature was deprecated after v1.19.0. • lib/HomePage.dart:209:15 • deprecated_member_use info • 'title' is deprecated and shouldn't be used. Use "label" instead, as it allows for an improved text-scaling experience. This feature was deprecated after v1.19.0. • lib/HomePage.dart:219:15 • deprecated_member_use info • The value of the local variable 'byteNumber' isn't used • lib/ImageScreen.dart:146:11 • unused_local_variable info • Unused import: 'package:flutter/services.dart' • lib/ImageUploadToFirebase.dart:8:8 • unused_import info • Unused import: 'package:multi_image_picker/multi_image_picker.dart' • lib/ImageUploadToFirebase.dart:10:8 • unused_import info • Unused import: 'package:thioffices/main.dart' • lib/ImageUploadToFirebase.dart:12:8 • unused_import info • Unused import: 'dart:ui' • lib/ImageUploadToFirebase.dart:17:8 • unused_import info • The value of the field '_firebase' isn't used • lib/ImageUploadToFirebase.dart:29:26 • unused_field info • The value of the local variable 'isOk' isn't used • lib/ImageUploadToFirebase.dart:223:14 • unused_local_variable info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/ImagesPreview.dart:54:11 • deprecated_member_use info • Unused import: 'dart:math' • lib/Missions.dart:3:8 • unused_import info • Unused import: 'package:mime_type/mime_type.dart' • lib/Missions.dart:8:8 • unused_import info • Cancel instances of dart.async.StreamSubscription • lib/Missions.dart:116:29 • cancel_subscriptions info • Cancel instances of dart.async.StreamSubscription • lib/Missions.dart:117:29 • cancel_subscriptions info • Name non-constant identifiers using lowerCamelCase • lib/Missions.dart:121:29 • non_constant_identifier_names info • The value of the local variable '_firebase' isn't used • lib/Missions.dart:834:30 • unused_local_variable info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: NewMission.missionISSet, NewMission.mission, NewMission.groupKey • lib/NewMission.dart:20:7 • must_be_immutable info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/NewMission.dart:158:23 • deprecated_member_use info • Unused import: 'package:pdf_render/pdf_render_widgets.dart' • lib/PdfViewer.dart:13:8 • unused_import info • Unused import: 'dart:ui' • lib/PdfViewer.dart:14:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: PDFScreen.path, PDFScreen.officeKey, PDFScreen.userKey • lib/PdfViewer.dart:16:7 • must_be_immutable info • The value of the local variable 'pageCount' isn't used • lib/PdfViewer.dart:123:9 • unused_local_variable info • The value of the local variable 'pageImage' isn't used • lib/PdfViewer.dart:126:18 • unused_local_variable info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/PdfViewer.dart:207:14 • deprecated_member_use info • Unused import: 'package:intl/intl.dart' • lib/PhotoUpload.dart:11:8 • unused_import info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: UploadPhotoPage.mission, UploadPhotoPage.userKey, UploadPhotoPage.source • lib/PhotoUpload.dart:108:7 • must_be_immutable info • 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead • lib/PhotoUpload.dart:118:26 • deprecated_member_use info • 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead. • lib/PhotoUpload.dart:225:40 • deprecated_member_use info • The value of the local variable 'error' isn't used • lib/PhotoUpload.dart:243:12 • unused_local_variable info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/PhotoUpload.dart:460:11 • deprecated_member_use info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: ShowImage.image, ShowImage.getImage • lib/PhotoUpload.dart:486:7 • must_be_immutable info • Unused import: 'package:thioffices/Missions.dart' • lib/RejectMission.dart:2:8 • unused_import info • Unused import: 'package:thioffices/Cleints.dart' • lib/SearchInData.dart:3:8 • unused_import info • The field doesn't override an inherited getter or setter • lib/SearchInData.dart:29:18 • override_on_non_overriding_member info • Unused import: 'package:thioffices/Authirties.dart' • lib/SearchInDataPopUp.dart:3:8 • unused_import info • Unused import: 'package:thioffices/Cleints.dart' • lib/SearchInDataPopUp.dart:4:8 • unused_import info • The field doesn't override an inherited getter or setter • lib/SearchInDataPopUp.dart:36:18 • override_on_non_overriding_member info • Avoid empty statements • lib/WarketAml.dart:715:5 • empty_statements info • The declaration '_animateResetInitialize' isn't referenced • lib/WarketAml.dart:786:8 • unused_element info • The value of the local variable 'width' isn't used • lib/WarketAml.dart:1062:22 • unused_local_variable info • 'isPlaying' is deprecated and shouldn't be used. Prefer to use audio_state variable • lib/audioPlayer.dart:69:32 • deprecated_member_use info • 'isPlaying' is deprecated and shouldn't be used. Prefer to use audio_state variable • lib/audioPlayer.dart:87:23 • deprecated_member_use info • The value of the local variable 'temp' isn't used • lib/audioPlayer.dart:91:12 • unused_local_variable info • The value of the local variable 'temp' isn't used • lib/audioPlayer.dart:104:12 • unused_local_variable info • Avoid empty statements • lib/authentication/LoaginRegisterPage.dart:39:5 • empty_statements info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/authentication/LoaginRegisterPage.dart:97:13 • deprecated_member_use info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/authentication/LoaginRegisterPage.dart:152:13 • deprecated_member_use info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/authentication/LoaginRegisterPage.dart:161:13 • deprecated_member_use info • Unused import: 'dart:ffi' • lib/contacts/contacs.dart:1:8 • unused_import info • Unused import: 'package:flutter/cupertino.dart' • lib/contacts/contacs.dart:4:8 • unused_import info • Unused import: 'dart:collection' • lib/contacts/contactPage.dart:1:8 • unused_import info • The value of the field '_authKey' isn't used • lib/contacts/contactPage.dart:26:10 • unused_field info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/contacts/contactPage.dart:184:11 • deprecated_member_use info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/contacts/contactPage.dart:195:11 • deprecated_member_use info • Unused import: 'package:thioffices/Cleints.dart' • lib/missionInformation.dart:5:8 • unused_import info • A value for optional parameter 'toDo' isn't ever given • lib/missionInformation.dart:386:8 • unused_element info • A value for optional parameter 'funcValue' isn't ever given • lib/missionInformation.dart:386:21 • unused_element info • Unused import: 'dart:collection' • lib/missionsPage/MissionsPage.dart:2:8 • unused_import info • Unused import: 'package:firebase_database/firebase_database.dart' • lib/missionsPage/MissionsPage.dart:5:8 • unused_import info • Unused import: 'package:http/http.dart' • lib/missionsPage/MissionsPage.dart:7:8 • unused_import info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/missionsPage/MissionsPage.dart:268:12 • deprecated_member_use info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/missionsPage/MissionsPage.dart:901:13 • deprecated_member_use info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/missionsPage/MissionsPage.dart:922:13 • deprecated_member_use info • 'FlatButton' is deprecated and shouldn't be used. Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/missionsPage/MissionsPage.dart:928:13 • deprecated_member_use info • Unused import: '../NewMission.dart' • lib/missionsPage/MissionsPageWide.dart:5:8 • unused_import info • Unused import: 'package:flutter/gestures.dart' • lib/oneMissionPage.dart:4:8 • unused_import info • Unused import: 'package:flutter_sound/flutter_sound.dart' • lib/oneMissionPage.dart:6:8 • unused_import info • Unused import: 'Cleints.dart' • lib/oneMissionPage.dart:13:8 • unused_import info • The value of the field '_rtlAlign' isn't used • lib/oneMissionPage.dart:45:18 • unused_field info • The declaration '_contextWidth' isn't referenced • lib/oneMissionPage.dart:273:3 • unused_element info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/painting/paint.dart:271:30 • deprecated_member_use info • 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). This feature was deprecated after v1.26.0-18.0.pre. • lib/painting/paint.dart:375:14 • deprecated_member_use info • The value of the local variable 'center' isn't used • lib/painting/paint.dart:492:12 • unused_local_variable info • The value of the local variable 'minScal' isn't used • lib/painting/paint.dart:497:12 • unused_local_variable

mohammedektelat@Mini-mohammed thioffices % flutter doctor -v [✓] Flutter (Channel dev, 2.2.0-10.1.pre, on macOS 11.2.3 20D91 darwin-arm, locale ar-IL) • Flutter version 2.2.0-10.1.pre at /Users/mohammedektelat/development/flutter • Framework revision 0941968447 (4 days ago), 2021-04-15 12:01:02 -0700 • Engine revision d2a2e93510 • Dart version 2.13.0 (build 2.13.0-211.6.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Users/mohammedektelat/Library/Android/sdk • Platform android-30, build-tools 30.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e • CocoaPods version 1.10.1

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.55.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.21.0

[✓] Connected device (2 available) • SM G610F (mobile) • 3300989c572b932f • android-arm • Android 8.1.0 (API 27) • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.128