plugins { id 'com.android.application' id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' } android { compileSdkVersion 33 defaultConfig { applicationId "com.example.mapwithmarker" minSdkVersion 19 targetSdkVersion 33 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } // [START maps_android_play_services_maps_dependency] dependencies { implementation 'com.google.android.gms:play-services-maps:18.1.0' // [START_EXCLUDE] implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.6.0' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' // [END_EXCLUDE] } // [END maps_android_play_services_maps_dependency] secrets { // To add your Maps API key to this project: // 1. Open the root project's local.properties file // 2. Add this line, where YOUR_API_KEY is your API key: // MAPS_API_KEY=YOUR_API_KEY defaultPropertiesFileName 'local.defaults.properties' }