sockeqwe / mosby

A Model-View-Presenter / Model-View-Intent library for modern Android apps
http://hannesdorfmann.com/mosby/
Apache License 2.0
5.49k stars 841 forks source link

Question about compiling sample-mail #243

Open TheOska opened 7 years ago

TheOska commented 7 years ago

I cannot run sample-mail example with some error message screen shot 2017-05-05 at 12 06 08 pm

I tried "clear project" and "rebuild project" but fail to run, Is my setting problem? Thanks.

chennyshan commented 7 years ago

+1, and Release package 3.0.2 is ok

sockeqwe commented 7 years ago

Hm, not sure why it doesn't compile. On my machine it compiles just fine and also on Travis CI. could you try to build it from command line:

./gradlew clean build

It should build successfully. Then you can try to run the app from android studio (green play button).

Let me know if this helps.

chennyshan commented 7 years ago

I tried the previous command line, but got the same error as that from android studio. FYI

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sample-mail:compileDebugJavaWithJavac'.
> java.lang.NoSuchFieldError: MAP

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
sockeqwe commented 7 years ago

hm, compiles on my machine from command line.

bildschirmfoto 2017-05-17 um 10 22 41

Have you changed some code or gradle plugin version?

sockeqwe commented 7 years ago

Ok, I'm now finally able to reproduce this issue on circle ci

https://circleci.com/gh/sockeqwe/mosby/1

I hope to find some time to fix this issue in August

BrianOdisho commented 7 years ago

@sockeqwe any general idea on what could be causing this issue?

sockeqwe commented 7 years ago

not really, but I will replace the annotation processor that causes this issue