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

Android dependency 'androidx.media:media' has different version for the compile (1.0.0-rc01) and runtime (1.0.0) classpath. #6

Open
louia opened this issue May 9, 2019 · 2 comments

Comments

@louia
Copy link

louia commented May 9, 2019

i have this message and i can't compile my app.
Flutter v1.5.8
Dart 2.3.0
on dev channel

Android dependency 'androidx.media:media' has different version for the compile (1.0.0-rc01) and runtime (1.0.0) classpath
@mikegazzaruso
Copy link

mikegazzaruso commented May 21, 2019

Try to force the dependency in you app level build.gradle:

`
android {
compileSdkVersion 28

defaultConfig {
   // Your code
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
   // Your build types if any
}

configurations.all {
    resolutionStrategy {
        force 'androidx.media:media:1.0.0'
    }
}

}
`

@louia
Copy link
Author

louia commented Jun 12, 2019

not work at all.

i have upgrade my sdk and plugin version of flutter/android studio to
Flutter : 1.7.3
dart : 2.3.2

and i think the problem come from with my other packages i use for my project :

  geolocator: ^3.0.1
  geocoder: 0.1.2
  url_launcher: ^5.0.2
  sqflite: any
  path_provider: any
  dbcrypt: ^1.0.0
  flushbar: ^1.4.0
  vibration: 1.0.2
  shared_preferences: ^0.5.2
  http: ^0.12.0+2
  flutter_offline: ^0.2.4+1
  flutter_secure_storage: ^3.2.1+1
#  imei_plugin: 1.1.0```

because when i create a neutral empty project, imei plugin work just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants