ダン・クァン・ミン Blog

はじめまして

Note Something About Android Studio

Create project with Google Plus login

Cần phải sửa lại phiên bản của play-services trong file build.gradle

compile 'com.google.android.gms:play-services:6.1.71'

Thao tác để enable Google Plus API

  1. Go to the Google Developers Console

  2. Click Create Project:

    • In the Project name field, type in a name for your project, such as Quickstart App.
    • In the Project ID field, optionally type in a project ID for your project or use the one that the console has created for you. This ID must be unique world-wide.
  3. Click the Create button and wait for the project to be created. Note: There may be short delay of up to 30 seconds before the project is created. Once the project is created, the name you gave it appears at the top of the left sidebar.

    • In the left sidebar, select APIs & auth (the APIs sub-item is automatically selected).
    • Find the Google+ API and set its status to ON—notice that this action moves Google+ API to the top of the list; you can scroll up to see it.
    • In the sidebar under “APIs & auth”, select Consent screen.
    • Choose an Email Address and specify a Product Name.
    • In the left sidebar under “APIs & auth”, select Credentials.
    • Click Create a new Client ID—the Create Client ID dialog box appears, as shown further below.
    • Select Installed application for the application type.
    • Select Android as the installed application type.
    • Copy and paste the following package name for this quick-start app into the Package name field: com.google.android.gms.plus.sample.quickstart
    • In a terminal, run the the Keytool utility to get the SHA-1 fingerprint of the certificate. For the debug.keystore, the password is android. keytool -exportcert -alias androiddebugkey -keystore -list -v

Comments