openid / OpenYOLO-Android

Android protocol for credential exchange and update - "You Only Login Once"
http://openid.net/wg/ac/
Apache License 2.0
115 stars 18 forks source link

Cannot access com.google.protobuf #62

Closed StanKocken closed 7 years ago

StanKocken commented 7 years ago

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:

screen shot 2017-05-26 at 18 05 00

Any idea why and how to fix it?

nerdyverde commented 7 years ago

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 notifications@github.com 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 https://github.com/openid/OpenYOLO-Android/issues/62, or mute the thread https://github.com/notifications/unsubscribe-auth/AISh7-8Bc8Lgzx6TBEn2EFaWxLUy2Utxks5r9vhGgaJpZM4Nnx-E.

StanKocken commented 7 years ago

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.