Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CreateWalletObjectsRequest is missing from com.google.android.gms.wallet API

Tags:

As per the given link: https://developers.google.com/wallet/objects/savetowalletnative

I am trying to run the sample application, but in this below method, I am not able to find CreateWalletObjectsRequest. It says:

"CreateWalletObjectsRequest cannot be resolved to a type"

public void saveToWallet(View view){

    LoyaltyWalletObject wob = generateObject();


    CreateWalletObjectsRequest request = new CreateWalletObjectsRequest(wob);
    Wallet.createWalletObjects(googleApiClient, request, SAVE_TO_WALLET);

}
like image 914
Manifest.xml Avatar asked Jul 22 '14 20:07

Manifest.xml


1 Answers

Google hasn't opened Save to Wallet api for everyone yet. We had to get a special Google Play Services AAR directly from Google, along with a lot of help from a Googler to get it functioning (the sample is out of date).

like image 193
dandc87 Avatar answered Dec 18 '22 21:12

dandc87