android - GoogleApiClient.addApi() doesn't support Gmail API -


i'm trying use following code authentication given apis addapi neither recognizing gmail api or gmail.api api. because of i'm getting unauthorized 401 going further application when trying retrieve messages.

mgoogleapiclient = new googleapiclient.builder(this)                 .addconnectioncallbacks(this)                 .addonconnectionfailedlistener(this)                 .addapi(plus.api)                 .addscope(plus.scope_plus_login)                 .addapi(gmail)                 .addscope(gmailscopes.gmail_readonly)                 .build(); 


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -