Skip to content

fix mvn build - #654

Closed
ghost wants to merge 1 commit into
developfrom
unknown repository
Closed

ghost wants to merge 1 commit into
developfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Oct 12, 2014

Copy link
Copy Markdown

No description provided.

@stoyicker

Copy link
Copy Markdown
Contributor

@LukeOwncloud Have you installed the app from the apk that is generated by using this configuration? It crashes continuously with ClassNotFoundExceptions and NoClassDefFoundErrors. I have verified and this doesn't occur with Gradle, so there shouldn't be a reason for this to happen with Maven either.

@ghost

ghost commented Oct 15, 2014

Copy link
Copy Markdown
Author

@stoyicker No, but I did just now: The actually error you saw is:

I/dalvikvm(25924): Failed resolving Lcom/owncloud/android/ui/activity/OnEnforceableRefreshListener; interface 387 'Landroid/support/v4/widget/SwipeRefreshLayout$OnRefreshListener;'

I originates from using SwipeRefreshLayout in ExtendedListFragment.java which was added May 29. Refer to: 6451222#diff-186b6e85e7df6494ef312fefaff39acd

SwipeRefreshLayout is somehow included in Android Support library v4. I do not know how to include it with maven properly. SherlockActionbar also depends on it. So there seems to be a version conflict. I used to use a workaround for including the exact same version which is not officially supported by maven anymore. It really is a mess.

I suggest to remove maven building support altogether.

@stoyicker Why don't you edit SETUP.md and explain how to use gradle?

@stoyicker

Copy link
Copy Markdown
Contributor

@LukeOwncloud Me and my peers haven't still made the pull request (see #656), but Gradle support, an updated SETUP.md (including the guidelines for Gradle and Android Studio) and some other minor improvements to the build system are already ready. We also addressed Maven on our own and get a different error about classes not found that actually are in the apk (and furthremore, they don't belong to dependencies, but to the very own application core).

As for removing Maven, maybe we should consult @davivel ? Personally I can't disagree; after all, it doesn't work as of now.

@stoyicker stoyicker mentioned this pull request Oct 15, 2014
@ghost

ghost commented Oct 15, 2014

Copy link
Copy Markdown
Author

@stoyicker You are probably talking about this error:

 Didn't find class "com.owncloud.android.ui.activity.FileDisplayActivity" on path

That actually the same as I was referring to: FileDisplayActivity uses OCFileListFragment and that extends ExtendedListFragment which in turn imports SwipeRefreshLayout which is supposed to be in that support library which maven does not include...

As for removing maven support: I make it work from time to time but nobody seems to notice when it doesn't (except for you right now!) So, it should be a big deal.

@stoyicker

Copy link
Copy Markdown
Contributor

@LukeOwncloud As you say then, it's not like I've been watching the ownCloud repositories for a long time. If you believe that Maven is not really being used, I think the best idea is that me and my peers should limit our pull request to how it is now, and then, once it gets merged or discarded, you can rebase on it and create a new one removing maven support (or the other way around - if you make one removing Maven and it gets merged, we'll rebase, whatever).

@ghost

ghost commented Oct 15, 2014

Copy link
Copy Markdown
Author

You go first. I close this PR for now.

@ghost ghost closed this Oct 15, 2014
@ghost

ghost commented Oct 21, 2014

Copy link
Copy Markdown
Author

@davivel What do you think about dropping maven support?

@davivel

davivel commented Oct 23, 2014

Copy link
Copy Markdown
Contributor

I think dropping mvn is a valid option, Gradle is being pushed by Google a lot. For most Android developers, gradle should be preferable to mvn.

@ghost
ghost deleted the checking_mvn_build branch November 5, 2014 19:01
This pull request was closed.
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.

2 participants