Skip to content

fix: Enable multidex support for versions older than API 21#1000

Merged
vtrifonov merged 1 commit intoreleasefrom
trifonov/multidex-fix
Apr 12, 2018
Merged

fix: Enable multidex support for versions older than API 21#1000
vtrifonov merged 1 commit intoreleasefrom
trifonov/multidex-fix

Conversation

@vtrifonov
Copy link
Copy Markdown
Contributor

As with the latest version of the graddle we've enabled multidex by default we need to handle multidex processing in API levels older than api 21.
Fixes #999

@vtrifonov vtrifonov requested a review from darind April 11, 2018 15:07
@ns-bot
Copy link
Copy Markdown

ns-bot commented Apr 11, 2018

💚

@vtrifonov vtrifonov merged commit 5f64507 into release Apr 12, 2018
@Burgov
Copy link
Copy Markdown

Burgov commented Apr 17, 2018

I'm getting this error now, do i need to do anything?

Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find any version that matches com.android.support:multidex:26.0.+.
  Versions that do not match:
      1.0.1
      1.0.0
      1.0.3
      1.0.2

@darind
Copy link
Copy Markdown
Collaborator

darind commented Apr 17, 2018

@Burgov can you show your project.json and also if you made some changes to app/App_Resources/app.gradle so that we try to reproduce the error?

@Burgov
Copy link
Copy Markdown

Burgov commented Apr 17, 2018

@darind thanks for your quick response and for pointing me in the right direction.

To fix an earlier issue, I had this in my app.gradle:

dependencies {
    configurations.all {
        resolutionStrategy.eachDependency { DependencyResolveDetails details ->
            def requested = details.requested
            if (requested.group == 'com.android.support') {
                details.useVersion '26.0.+'
            }
        }
    }
}

Changing it to look like what's in this post: https://stackoverflow.com/a/45025597/1001966 fixes it.

@vtrifonov vtrifonov deleted the trifonov/multidex-fix branch April 17, 2018 13:58
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

Successfully merging this pull request may close these issues.

4 participants