Skip to content
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

Packages GET failes with "The plugin flutter_plugin_android_lifecycle doesn't" #52739

Closed
julienduchow opened this issue Mar 17, 2020 · 5 comments
Labels
in triage Presently being triaged by the triage team

Comments

@julienduchow
Copy link

Steps to Reproduce

1. Run flutter pub get
2. Error comes in console

Error:

The plugin flutter_plugin_android_lifecycle doesn't have a main class defined in C:\Users\julie\Documents\biodiversity\flutter_windows_v1.9.1+hotfix.4-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.6\android\src\main\java\io\flutter\plugins\flutter_plugin_android_lifecycle\FlutterAndroidLifecyclePlugin.java or C:\Users\julie\Documents\biodiversity\flutter_windows_v1.9.1+hotfix.4-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.6\android\src\main\kotlin\io\flutter\plugins\flutter_plugin_android_lifecycle\FlutterAndroidLifecyclePlugin.kt. This is likely to due to an incorrect androidPackage: io.flutter.plugins.flutter_plugin_android_lifecycle or mainClass entry in the plugins 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 different plugin in the meanwhile.

The error disappears when I use version 0.6.0 of the ImagePicker plugin.

pubspec.yaml:

name: biodiversity_v4
description: Biodiversity Warehouse Cross Platform App

https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.3.1+3

environment:
  sdk: ">=2.3.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  flutter_cupertino_localizations: ^1.0.1
  http: ^0.12.0+4
  sqflite: ^1.3.0
  path: ^1.6.4
  crypto: ^2.1.3
  flutter_typeahead: ^1.7.0
  image_picker: 0.6.3+4
  google_maps_flutter: 0.5.21+14
  http_parser: ^3.1.3

  cupertino_icons: ^0.1.3

dev_dependencies:
  flutter_test:
    sdk: flutter
  intl_translation: ^0.17.9




flutter:
  assets:
    - assets/
    - assets/img/

  uses-material-design: true

Flutter Doctor:

[√] Flutter (Channel dev, v1.15.21, on Microsoft Windows [Version 10.0.17134.1365], locale de-DE)
    • Flutter version 1.15.21 at C:\Users\julie\Documents\biodiversity\flutter_windows_v1.9.1+hotfix.4-stable\flutter
    • Framework revision e2b4edd286 (4 days ago), 2020-03-13 02:46:02 -0400
    • Engine revision d7a00b8b09
    • Dart version 2.8.0 (build 2.8.0-dev.14.0 eb9c26bd37)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\julie\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
    • All Android licenses accepted.

[√] Android Studio (version 3.6)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[!] IntelliJ IDEA Ultimate Edition (version 2019.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2019.2.1
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[!] IntelliJ IDEA Ultimate Edition (version 2019.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.2
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.


</details>
@VladyslavBondarenko
Copy link

Hi @julien100000
I can't reproduce it with the same dependencies (on dev v1.15.21).
Can you see the error after running flutter pub cache repair?

@VladyslavBondarenko VladyslavBondarenko added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Mar 17, 2020
@julienduchow
Copy link
Author

The command flutter pub cache repair failes (I think) with the following message:

Resetting Git repository for assets_for_android_views 0.1.0...
Downloading _discoveryapis_commons 0.1.8+1...
Downloading _fe_analyzer_shared 1.0.1...
Downloading _fe_analyzer_shared 1.0.3...
Downloading analyzer 0.36.4...
Downloading analyzer 0.39.2+1...
Downloading analyzer 0.39.4...
Downloading archive 2.0.10...
Downloading archive 2.0.11...
Downloading args 1.5.2...
Downloading async 2.3.0...
Downloading async 2.4.0...
Downloading bazel_worker 0.1.21...
Downloading boolean_selector 1.0.5...
Downloading browser_launcher 0.1.2...
Downloading browser_launcher 0.1.5...
Downloading build 1.1.5...
Downloading build_config 0.4.1+1...
Downloading build_daemon 2.0.0...
Downloading build_daemon 2.1.3...
Downloading build_modules 2.4.2...
Downloading build_resolvers 1.0.6...
Downloading build_runner 1.6.5...
Downloading build_runner_core 3.0.9...
Downloading build_test 0.10.8...
Downloading build_vm_compilers 1.0.2...
Downloading build_web_compilers 2.2.2...
Downloading built_collection 4.2.2...
Downloading built_collection 4.3.2...
Downloading built_value 6.7.0...
Downloading built_value 7.0.9...
Downloading charcode 1.1.2...
Downloading checked_yaml 1.0.2...
Downloading code_builder 3.2.0...
Downloading codemirror 0.5.7+5.48.0...
Downloading collection 1.14.11...
Downloading completion 0.2.1+1...
Downloading completion 0.2.2...
Downloading connectivity 0.4.3+7...
Downloading convert 2.1.1...
Downloading coverage 0.13.2...
Downloading coverage 0.13.9...
Downloading crypto 2.1.1+1...
Downloading crypto 2.1.3...
Downloading csslib 0.16.1...
Downloading cupertino_icons 0.1.2...
Downloading cupertino_icons 0.1.3...
Downloading dart_style 1.2.9...
Downloading dart_style 1.3.3...
Downloading device_info 0.4.0+2...
Downloading devtools 0.1.1...
Downloading devtools 0.1.15...
Downloading devtools_server 0.1.2...
Downloading devtools_server 0.1.13...
Downloading dwds 0.5.0...
Downloading dwds 1.0.1...
Downloading file 5.0.8+1...
Downloading file 5.1.0...
Downloading file_testing 2.1.0...
Downloading fixnum 0.10.9...
Downloading fixnum 0.10.11...
Downloading flutter_cupertino_localizations 1.0.1...
Downloading flutter_gallery_assets 0.1.9+2...
Downloading flutter_keyboard_visibility 0.7.0...
Downloading flutter_plugin_android_lifecycle 1.0.6...
Failed to repair flutter_plugin_android_lifecycle 1.0.6. Error:
FileSystemException: Deletion failed, path = 'C:\Users\julie\Documents\biodiversity\flutter_windows_v1.9.1+hotfix.4-stable\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.6' (OS Error: Das System kann den angegebenen Pfad nicht finde
n.
, errno = 3)
Downloading flutter_typeahead 1.7.0...
Downloading flutter_typeahead 1.8.0...
Downloading front_end 0.1.19...
Failed to repair front_end 0.1.19. Error:
FileSystemException: Deletion failed, path = 'C:\Users\julie\Documents\biodiversity\flutter_windows_v1.9.1+hotfix.4-stable\flutter\.pub-cache\hosted\pub.dartlang.org\front_end-0.1.19' (OS Error: Das System kann den angegebenen Pfad nicht finden.
, errno = 3)
Downloading glob 1.1.7...
Downloading glob 1.2.0...
Downloading google_maps_flutter 0.5.21+11...
Downloading google_maps_flutter 0.5.21+14...
Downloading google_maps_flutter 0.5.24+1...
Downloading googleapis 0.54.0...
Downloading googleapis_auth 0.2.10...
Downloading graphs 0.2.0...
Downloading html 0.14.0+2...
Downloading html 0.14.0+3...
Downloading http 0.12.0...
Downloading http 0.12.0+1...
Downloading http 0.12.0+2...
Downloading http 0.12.0+4...
Downloading http_multi_server 2.1.0...
Downloading http_multi_server 2.2.0...
Downloading http_parser 3.1.3...
Downloading image 2.1.4...
Downloading image_picker 0.3.0...
Downloading image_picker 0.5.0...
Downloading image_picker 0.6.0...
Downloading image_picker 0.6.3+4...
Downloading intl 0.15.8...
Downloading intl 0.16.1...
Downloading intl_translation 0.17.5...
Downloading intl_translation 0.17.9...
Downloading io 0.3.3...
Downloading isolate 2.0.2...
Downloading js 0.6.1+1...
Downloading json_annotation 3.0.0...
Downloading json_annotation 3.0.1...
Downloading json_rpc_2 2.1.0...
Downloading kernel 0.3.19...
Downloading linter 0.1.93...
Downloading logging 0.11.3+2...
Downloading logging 0.11.4...
Downloading matcher 0.12.5...
Downloading matcher 0.12.6...
Downloading meta 1.1.7...
Downloading meta 1.1.8...
Downloading mime 0.9.6+3...
Downloading mockito 4.1.0...
Downloading mockito 4.1.1...
Downloading multi_server_socket 1.0.2...
Downloading multicast_dns 0.2.1...
Downloading multicast_dns 0.2.2...
Downloading mustache 1.1.1...
Downloading mustache_template 1.0.0+1...
Downloading native_stack_traces 0.2.2...
Downloading node_interop 1.0.3...
Downloading node_io 1.0.1+2...
Downloading node_preamble 1.4.6...
Downloading node_preamble 1.4.8...
Downloading octicons_css 0.0.1...
Downloading package_config 1.0.5...
Downloading package_config 1.1.0...
Downloading package_config 1.9.1...
Downloading package_resolver 1.0.10...
Downloading path 1.6.4...
Downloading path_provider 1.2.0...
Downloading pedantic 1.8.0+1...
Downloading pedantic 1.9.0...
Downloading petitparser 2.4.0...
Downloading platform 2.2.1...
Downloading platform_detect 1.3.5...
Downloading plotly_js 0.0.1...
Downloading plugin 0.2.0+3...
Downloading polymer_css 0.0.1...
Downloading pool 1.4.0...
Downloading primer_css 0.0.2...
Downloading process 3.0.11...
Downloading process 3.0.12...
Downloading protobuf 0.13.15...
Downloading pub_semver 1.4.2...
Downloading pub_semver 1.4.3...
Downloading pubspec_parse 0.1.5...
Downloading quiver 2.0.5...
Downloading rxdart 0.21.0...
Downloading scoped_model 1.0.1...
Downloading scratch_space 0.0.4...
Downloading shelf 0.7.5...
Downloading shelf_packages_handler 1.0.4...
Downloading shelf_proxy 0.1.0+7...
Downloading shelf_static 0.2.8...
Downloading shelf_web_socket 0.2.3...
Downloading shrine_images 1.1.2...
Downloading source_map_stack_trace 1.1.5...
Downloading source_map_stack_trace 2.0.0...
Downloading source_maps 0.10.8...
Downloading source_maps 0.10.9...
Downloading source_span 1.5.5...
Downloading split 0.0.4...
Downloading sqflite 1.1.7+3...
Downloading sqflite 1.1.8...
Downloading sqflite 1.3.0...
Downloading sqflite_common 1.0.0+1...
Downloading sse 2.0.2...
Downloading sse 3.2.1...
Downloading stack_trace 1.9.3...
Downloading stream_channel 2.0.0...
Downloading stream_transform 0.0.19...
Downloading stream_transform 1.2.0...
Downloading string_scanner 1.0.5...
Downloading sync_http 0.2.0...
Downloading synchronized 2.1.1...
Downloading term_glyph 1.1.0...
Downloading test 1.6.3...
Downloading test 1.14.2...
Downloading test_api 0.2.5...
Downloading test_api 0.2.15...
Downloading test_core 0.2.5...
Downloading test_core 0.3.3...
Downloading timing 0.1.1+2...
Downloading typed_data 1.1.6...
Downloading url_launcher 5.1.2...
Downloading usage 3.4.1...
Downloading uuid 2.0.2...
Downloading uuid 2.0.4...
Downloading vector_math 2.0.8...
Downloading video_player 0.10.1+6...
Downloading vm_service 1.1.0...
Downloading vm_service 1.2.0...
Downloading vm_service_client 0.2.6+2...
Downloading vm_service_lib 3.22.2+1...
Downloading watcher 0.9.7+12...
Downloading watcher 0.9.7+13...
Downloading watcher 0.9.7+14...
Downloading web_socket_channel 1.0.15...
Downloading web_socket_channel 1.1.0...
Downloading webdriver 2.1.2...
Downloading webkit_inspection_protocol 0.4.2...
Downloading webkit_inspection_protocol 0.5.0+1...
Downloading xml 3.5.0...
Downloading yaml 2.1.16...
Downloading yaml 2.2.0...
Reinstalled 201 packages.
Failed to reinstall 2 packages:
- flutter_plugin_android_lifecycle 1.0.6
- front_end 0.1.19
pub finished with exit code 69

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 17, 2020
@VladyslavBondarenko
Copy link

VladyslavBondarenko commented Mar 18, 2020

@julien100000
could you try to delete .pub-cache folder in your flutter directory and in you user home directory (if exists)? and run flutter pub get

@VladyslavBondarenko VladyslavBondarenko added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 18, 2020
@julienduchow
Copy link
Author

That worked. Thank you!

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 21, 2020
@lock
Copy link

lock bot commented Apr 4, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@lock lock bot locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in triage Presently being triaged by the triage team
Projects
None yet
Development

No branches or pull requests

2 participants