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

androidx.multidex does not exists when launching flutter app on an android emulator #525

Closed
brandonguigo opened this issue Feb 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@brandonguigo
Copy link

brandonguigo commented Feb 4, 2024

What is the problem?

I've tried to launch the app on an Android emulator, and I have got the following error :

/Users/brandonguigo/workspace/lichess-org-mobile/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java:13: error: package androidx.multidex does not exist
import androidx.multidex.MultiDex;
                        ^
/Users/brandonguigo/workspace/lichess-org-mobile/android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java:23: error: cannot find symbol
    MultiDex.install(this);
    ^
  symbol:   variable MultiDex
  location: class FlutterMultiDexApplication
2 errors

FAILURE: Build failed with an exception.

Steps to reproduce the bug

  1. Clone the repo
  2. Launch the app on android

What did you expect to happen?

I expected the app to launch successfully

What happened instead?

It crashed during build with a missing multidex error

Device Info

Pixel 7 Pro emulator

Operating System Version

Android 14

Additional information

It seems to be working when adding into android/app/build.gradle the following line:

dependencies {
    ...
    implementation 'com.android.support:multidex:2.0.1'
}

I have a fork branch with the fork and can make a PR if necessary :)

@brandonguigo brandonguigo added the bug Something isn't working label Feb 4, 2024
@brandonguigo brandonguigo closed this as not planned Won't fix, can't repro, duplicate, stale Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant