appoly / ARCore-Location

Allows items to be placed within the AR world with real-world GPS coordinates using ARCore.
https://www.appoly.co.uk/arcore-location/
MIT License
478 stars 154 forks source link

Error: Program type already present: com.google.flatbuffers.Constants #56

Closed ashif-ismail closed 6 years ago

ashif-ismail commented 6 years ago

I get this error when i add the gradle dependency and run the project.

although sync works fine.

i have checked the dependency graph to know which lib is using flatbuffers that may getting conflict.

among my dependencies only object box is using flatbuffers.

i have commented out your dependency and checked the app,its working fine so,somehow this library is causing problem with my dependencies ..

could you please help on this

ashif-ismail commented 6 years ago

cool,i fixed the issue.

the problem was because of duplicate dependencies in my gradle

i had object box which internally depended on flatbuffers,when i added this library it used to give me this error

after excluding it from the gradle configuration,i was able to run it