The ArcGIS Maps SDK for Kotlin Samples are Gradle based Android projects which can be directly cloned and imported into Android Studio.
If you haven't already, fork the this repo.
Once you have forked the repo, you need to create a local copy, or clone. You can do this directly in Android Studio, from a terminal prompt, or a GUI Client.
Clone the ArcGIS Maps SDK for Kotlin Samples in Android Studio:
Clone the ArcGIS Maps SDK for Kotlin Samples
Open your terminal, navigate to your working directory, use git clone
to get a copy of the repo.
# Clones your fork of the repository into the current directory in terminal
$ git clone https://github.com/YOUR-USERNAME/arcgis-maps-sdk-kotlin-samples.git
Configure remote upstream for your fork
To sync changes you make in a fork with this repository, you must configure a remote that points to the upstream repository in Git.
$ git remote -v origin https://github.com/YOUR_USERNAME/arcgis-maps-sdk-kotlin-samples.git (fetch) origin https://github.com/YOUR_USERNAME/arcgis-maps-sdk-kotlin-samples.git (push)
$ git remote add upstream https://github.com/Esri/arcgis-maps-sdk-kotlin-samples.git
$ git remote -v origin https://github.com/YOUR_USERNAME/arcgis-maps-sdk-kotlin-samples.git (fetch) origin https://github.com/YOUR_USERNAME/arcgis-maps-sdk-kotlin-samples.git (push) upstream https://github.com/Esri/arcgis-maps-sdk-kotlin-samples.git (fetch) upstream https://github.com/Esri/arcgis-maps-sdk-kotlin-samples.git (push)
Once you have set up a remote upstream you can keep your fork up to date with our samples repository by syncing your fork.
main
will be stored in a local branch, upstream/main
.main
branchupstream/main
into your local main
branch which syncs your forks main
branch with our samples repository.$ git merge upstream/main
Import Gradle Sample project into Android Studio
Once the project is cloned to disk you can import into Android Studio:
The latest ArcGIS Maps SDK compile dependency is defined for all sample modules in the root project build.gradle. This is the only place where you need to define the dependency to the ArcGIS Maps SDK for Kotlin.
subprojects { afterEvaluate { project -> if (project.hasProperty("dependencies")) { dependencies { compile 'com.esri:arcgis-maps-kotlin:200.1.0' } } } }
Our SDK is hosted in our public maven repository hosted by JFrog. Our repository url is added to the projects root build.gradle file.
repositories { mavenCentral() maven { url 'https://esri.jfrog.io/artifactory/arcgis' } }
You should now be able to run any of the included samples. We will use the display-map
sample as an example.
display-map
from the Select Run/Debug Configuration drop downSdkPlatformNotFoundException
?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4