Cannot access com.google.protobuf
StanKocken opened this issue · 2 comments
StanKocken commented
On the demo app Barbican, I have the class CredentialQueryReceiver
which contains:
if (credentialsFound) {
Intent retrieveIntent = RetrieveCredentialActivity.createIntent(context, request);
CredentialRetrieveBbqResponse response =
CredentialRetrieveBbqResponse.newBuilder()
.setRetrieveIntent(IntentUtil.toByteString(retrieveIntent))
.build();
responseBytes = response.toByteArray();
}
This is working fine with the OpenYolo project demo apps.
But on my side I have the following error:
Any idea why and how to fix it?
nerdyverde commented
Hey Stan,
I was having a similar issue when incorporating the latest changes from the OpenYOLO repo. Iain was kind enough to point out that I probably needed to add
compile 'com.google.protobuf:protobuf-lite:3.0.1'
to the app build.gradle file. Hopefully that helps you as well :)
Cheers,
Michael
… On May 26, 2017, at 9:05 AM, Stan Kocken ***@***.***> wrote:
On the demo app Barbican, I have the class CredentialQueryReceiver which contains:
if (credentialsFound) {
Intent retrieveIntent = RetrieveCredentialActivity.createIntent(context, request);
CredentialRetrieveBbqResponse response =
CredentialRetrieveBbqResponse.newBuilder()
.setRetrieveIntent(IntentUtil.toByteString(retrieveIntent))
.build();
responseBytes = response.toByteArray();
}
This is working fine with the OpenYolo project demo apps.
But on my side I have the following error:
<https://cloud.githubusercontent.com/assets/2204411/26502645/dbaa564c-423d-11e7-8c0a-99eb430aa383.png>
Any idea why and how to fix it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#62>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AISh7-8Bc8Lgzx6TBEn2EFaWxLUy2Utxks5r9vhGgaJpZM4Nnx-E>.
StanKocken commented
Thanks Michael, that did fix my issue.
We need to modify somehow the library to include this directly.
We will see with what @iainmcgin wanted to do for JCenter.