Now, you are taken to the Credentials page.Copy the SHA1 value from the terminal into the text field and press Create.If everything works correctly, you should see something like this: The password for the debug keystore is blank by default, so you can just press Return or Enter. After you execute the command, you will be prompted to enter the keystore password.On Windows, %USERPROFILE%/.android/debug.keystore.On Mac or Linux, ~/.android/debug.keystore.Change the path-to-debug-or-production-keystore to your default debug keystore location:.Copy the keytool text (press the Copy icon) and paste it into a terminal.Although the hint refers to the package name in AndroidManifest.xml, it has to match the applicationId in adle instead - otherwise, the login flow will fail. Choose Android, enter a name and the package name that you used to create your app.You don’t need to complete the form that appears - only the name is required.At this point, you may be asked to set a name on the consent screen before you create a credential.Type “Google Drive” and select Google Drive API.Select Library on the left-hand side to go to the Search screen.Sign up for a developer’s account if you don’t have one or sign in.In order to use the Google Drive SDK, you need to enable the API in your app. You shouldn’t need to change anything on this screen. Make sure that Kotlin support is selected and then press Next. From Android Studio, select Start a new Android Studio project from the startup screen or New Project from the File menu.Įnter the name GoogleDriveDemo, your company domain (or if your wish) and a project location. Since your UI will be bare-bones, open up Android Studio 3.1.1 or later and create a new project. Your phone or emulator will need up-to-date Google Play services on the device to run the app. Make sure you have Android Studio and the Kotlin plugin installed before you begin. Note: If you’re new to Android development or the Kotlin language, it’s highly recommended that you start with Beginning Android Development with Kotlin to learn your way around the basic tools and concepts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |