Skip to content

onActivityResult can't triggered when add flutter module to android project. #39384

@longdw

Description

@longdw

Steps to Reproduce

  1. add a plugin created myself to flutter module project
  2. run it, and onActivityResult can invoke
  3. add flutter module project to android
  4. run it, and onActivityResult can't invoke
[✓] Flutter (Channel master, v1.9.1-pre.58, on Mac OS X 10.13.6 17G2307, locale
    zh-Hans-CN)
    • Flutter version 1.9.1-pre.58 at /Users/longdw/flutter
    • Framework revision bc95f0881c (12 days ago), 2019-08-16 03:14:36 -0400
    • Engine revision bfa9be9978
    • Dart version 2.5.0 (build 2.5.0-dev.2.1 e35e8833ee)


[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/longdw/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-28, build-tools 28.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_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.0, Build version 10A255
    • CocoaPods version 1.6.1

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 38.2.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build
      1.8.0_202-release-1483-b49-5587405)

these are demo projects,

  1. flutter module with a simple plugin, look at testplugin
  2. android project with flutter module, look at TestPluginAndroid

@xster

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: existing-appsIntegration with existing apps via the add-to-app flowengineflutter/engine related. See also e: labels.platform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions