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

Fix: Improved multidex and repository declaration #909

Merged
merged 1 commit into from
Oct 26, 2018

Conversation

etlhsu
Copy link
Contributor

@etlhsu etlhsu commented Oct 24, 2018

Fix #910: Unresolved dependencies error while building app

The commit fixes issues where certain references caused issues when building project

@etlhsu
Copy link
Contributor Author

etlhsu commented Oct 24, 2018

@therajanmaurya and @miPlodder, it seems that contributors are having the issue that my patch solves, people cannot build the project without my change. You may want to consider address my pull request.

@miPlodder
Copy link
Collaborator

@ethan627hsu I have not faced any issues. What was the build issue that you were facing? Create an issue for it.

@etlhsu
Copy link
Contributor Author

etlhsu commented Oct 25, 2018

@miPlodder Some contributors face an issue where when building, Gradle gets confused about the support library and multidex. I've faced these problems locally, and when using Travis CI. The changes proposed will fix these issues, as some pull requests from others try to patch the issue within their functional solution.

*Screenshot of gradle build fail from @MigDinny in gitter
image

google()
jcenter()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ethan627hsu Why are you swapping these lines? This issue can be resolved by adding multi-dex dependency.

Copy link
Contributor Author

@etlhsu etlhsu Oct 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miPlodder The swapping prevents an error when referencing recyclerview in gradle

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ethan627hsu Can you add the reference/link from where you got this solution?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miPlodder A user on StackOverflow also experienced my same issue. Here was his solution.

app/build.gradle Outdated
@@ -134,5 +134,7 @@ dependencies {
androidTestImplementation "com.android.support.test.espresso:espresso-core:$rootProject.espressoVersion"
androidTestImplementation "com.android.support.test:runner:$rootProject.runnerVersion"
androidTestImplementation "com.android.support.test:rules:$rootProject.rulesVersion"

Copy link
Collaborator

@miPlodder miPlodder Oct 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ethan627hsu Add this as last implementation statement, that is above testImplementation and androidTestImplementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, added the change @miPlodder

@miPlodder
Copy link
Collaborator

@ethan627hsu Change the commit message to Fix #issue_number: message.

@etlhsu
Copy link
Contributor Author

etlhsu commented Oct 25, 2018

@miPlodder I added a modified commit message to the commit.

@etlhsu
Copy link
Contributor Author

etlhsu commented Oct 25, 2018

@miPlodder Do I need to make any other additional changes?

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.

Bug: Unresolved dependencies error while building app
2 participants