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

Bug: Unresolved dependencies error while building app #910

Closed
letelete opened this issue Oct 25, 2018 · 3 comments · Fixed by #909
Closed

Bug: Unresolved dependencies error while building app #910

letelete opened this issue Oct 25, 2018 · 3 comments · Fixed by #909

Comments

@letelete
Copy link
Contributor

letelete commented Oct 25, 2018

Summary:

Can't build the app, because of compiler unresolved dependencies errors, such as:

Failed to resolve: multidex
Failed to resolve: multidex-instrumentation

Steps to reproduce:

  1. Clone development branch
  2. Open project in your IDE
  3. Build project

Expected behaviour:

Complete build

Observed behaviour:

As I mentioned before, there are unresolved dependencies errors:

image

Running ./gradlew --debug check logs:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:getDependencies'.
Could not find multidex.jar 

For more details, check pastebin where I've posted more details from logs
https://pastebin.com/XiXbYFAW

Device and Android version:

Mobile device doesn't matter here, so I'll just say that I'm using Android Studio as an IDE

Screenshots:

image

@letelete
Copy link
Contributor Author

@miPlodder This issue appears in #907, #908. Fix for this issue might be #909

@MigDinny
Copy link
Contributor

MigDinny commented Oct 25, 2018

I was having this issue in my project after cloning it. I actually solved it by changing some stuff in build.gradle. I added it to .gitignore though.

UPDATE:

What I did was a temporary workaround in my computer. I increased minSdkVersion to 21 and removed multidex library dependency.

As described here, projects with minSdkVersion >= 21 do NOT require multidex library to be imported in build.gradle. That way I avoided that error.

This is only a temporary solution working as a workaround

@m-sameer
Copy link
Contributor

@miPlodder I'm able to fix this issue by updating the compileSdkVersion and some dependencies. Can you please add this as a GCI task?

etlhsu added a commit to etlhsu/mifos-mobile that referenced this issue Oct 25, 2018
miPlodder pushed a commit that referenced this issue Oct 26, 2018
Fix #910 : Improved multidex and repository declaration
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 a pull request may close this issue.

3 participants