Skip to content

Add2App: crash resulted from no flavor appended to get the mergeAssets task #29646

@tarek360

Description

@tarek360

In packages/flutter_tools/gradle/flutter.gradle, if the Android existing app has flavors, we don't append the current flavor to find the correct mergeAssets task path.

Steps to Reproduce

  1. Create Android app with flavors
  2. Follow instructions here to add Flutter to your existing app.
  3. Run the app

Crash

2019-03-20 07:43:45.392 32147-32147/io.github.tarek360.flavoredapp.demo E/flutter: [ERROR:flutter/runtime/dart_vm.cc(265)] VM snapshot must be valid.
2019-03-20 07:43:45.392 32147-32147/io.github.tarek360.flavoredapp.demo A/flutter: [FATAL:flutter/shell/common/shell.cc(208)] Check failed: vm. Must be able to initialize the VM.
2019-03-20 07:43:45.392 32147-32147/io.github.tarek360.flavoredapp.demo A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 32147 (lavoredapp.demo), pid 32147 (lavoredapp.demo)

Sample app:
here

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: existing-appsIntegration with existing apps via the add-to-app flowc: crashStack traces logged to the consoleplatform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions