Android studio kotlin8/14/2023 ![]() ![]() You will also need to modify your project-level adle file to include the following classpath: project-level adle buildscript. Next, to expose your API so it can be used throughout your app, include the Secrets Gradle Plugin for Android plugin in your app's adle file located in the app/ directory and add the following line within the plugins block:.This is because your API key is considered sensitive information and should not be checked in to source control, if possible. Notice that local.properties is listed in the. Local.properties GOOGLE_MAPS_API_KEY=YOUR_KEY_HERE In that file, define a new key GOOGLE_MAPS_API_KEY with its value being the API key that you created.To provide this, open the file called local.properties in the root directory of your project (the same level where gradle.properties and adle are).The API key that you created in an earlier step needs to be provided to the app so that Maps SDK for Android can associate your key with your app. In this section, you will add Google Maps so that it loads when you launch the app. ![]() Upon getting the code, go ahead and open the project found inside the starter directory in Android Studio. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |