-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protobuf duplicate class issue #107
Comments
I was not able to repro this. I made a new Hello World project, targeting API level 23 (see #16 for why). I added this to my app/build.gradle:
I went to the layout editor and gave the Hello World text box the id
I got the error mentioned in this SO posting: https://stackoverflow.com/questions/49891730/invoke-customs-are-only-supported-starting-with-android-0-min-api-26 I fixed it by adding this in app/build.gradle:
I was then able to get a minimal app running that linked against the DP-3T JAR file. (I was also able to call DP3T.init() as well, though you'll need to figure out how to get the PublicKey that it needs. See the calibration app.) |
I have managed to reproduce the issue in demo calibration app project. Building the project starts to fail when adding build.gradle project:
build.gradle app:
Also, in order to reproduce it you will need google-services.json file (https://support.google.com/firebase/answer/7015592?hl=en). |
Not pointing fingers here, but how is it a DP-3T problem that when you add firebase to your app, it starts to fail? |
Good point @jeffallen but in my case I have included DP-3T into our project later (we are using Firebase for quite some time). It would be great to use both libraries in our project. Firebase is important for most apps. |
Exclude the protobuf group when adding the firebase dependency. This worked for me.
|
This error means that you are importing two packages that use Protobuf for your project, one of them has a distribution that's conflicting with the other.
To:
I hope I helped. |
Hello, I am trying to implement your library into our project and getting some troubles.
Protobuf issue:
...of course, error code continues much further.
Have tried to look for a workaround, but nothing works out perfectly.
Have tried to exclude sub dependency:
And at least it helps to build the project. However, when invoking
initialize
method error happens:We are using firebase config and firebase inappmessaging in our project.
Is there any way to make it work?
Any help appreciated.
The text was updated successfully, but these errors were encountered: