Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

Adding VictorAlbertos.RxCache or ReactiveRache dependencies causes errors during code generation #68

Closed
lectricas opened this issue Dec 9, 2016 · 5 comments

Comments

@lectricas
Copy link

lectricas commented Dec 9, 2016

Hi. When I try to add your library into my project, another library stops working!
emilsjolander/IntentBuilder#22

error_generation
Not sure what is wrong

@lectricas
Copy link
Author

#56
his appoach didn't work

@VictorAlbertos
Copy link
Owner

VictorAlbertos commented Dec 9, 2016

Not sure what is wrong

Me neither xD

@lectricas
Copy link
Author

@VictorAlbertos
Dagger 2 also don't work when this library is in my gradle file. Any help?

@VictorAlbertos
Copy link
Owner

VictorAlbertos commented Dec 14, 2016

Try to change the version of the Dagger library that you are using to the one that RxCache uses.

apt "com.google.dagger:dagger-compiler:2.7"
compile "com.google.dagger:dagger:2.7"

@lectricas
Copy link
Author

lectricas commented Dec 26, 2016

Now I'm getting this:

Warning:unknown enum constant JsonSerialize$Inclusion.NON_NULL
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
19 warnings
:app:compileRetrolambdaDebug
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:transformClassesWithDexForDebug
Running dex as a separate process.
To run dex in process, the Gradle daemon needs a larger heap.
It currently has 1024 MB.
For faster builds, increase the maximum heap size for the Gradle daemon to at least 1536 MB.
To do this set org.gradle.jvmargs=-Xmx1536M in the project gradle.properties.
For more information see https://docs.gradle.org/current/userguide/build_environment.html
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Ljavax/annotation/Generated;
:app:transformClassesWithDexForDebug FAILED
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
Information:BUILD FAILED
Information:Total time: 1 mins 47.473 secs
Information:2 errors
Information:8 warnings
Information:See complete output in console

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants