-
Notifications
You must be signed in to change notification settings - Fork 2.3k
AndroidAnnotations with dagger compile error #631
Comments
As you can see on the Dagger's documentation they split the library in two in this version. So you have to add this dependency : <dependency>
<groupId>com.squareup.dagger</groupId>
<artifactId>dagger-compiler</artifactId>
<version>${dagger.version}</version>
<optional>true</optional>
</dependency> Also, @pyricau > Maybe you should update your repo :) |
@DayS Thanks!
|
I fixed the unused @Provider methods by adding : library=true
|
It runs crashed , if compiled using mvn. See also: commit id: 2ddb33aa9 |
Sorry for the late answer. Any news about this ? |
I fixed the problem, thanks! |
I'm using buck (http://facebook.github.io/buck/) to compile, running into same issue as you described with maven. It builds fine but crashes at runtime. Any idea what may be going on? I'm getting following error at runtime: E/AndroidRuntime( 2113): java.lang.RuntimeException: Unable to create application com.example.test.app.TestApplication: java.lang.TypeNotPresentException: Type class java.lang.Object$$ModuleAdapter not present |
how to fix the issue? |
Buck didnt support annotation processing at the time I used it. I moved to using gradle and frankly have found it to be much more suitable for my needs. |
thanks for reply. |
The code is here:
git clone git@github.com:sinojelly/androidannotations-dagger-example.git -b master
run command:
maven install
got error message:
The text was updated successfully, but these errors were encountered: