Requirements and installation for Android
Requirements
We recommend adding the following values to your AndroidManifest.xml file:
android:minSdkVersion="7"
android:targetSdkVersion="22"
or the latest version
For more, see the <uses-sdk> page on the Android Developers website.
Install the SDK JAR file
You can get the Splunk MINT SDK for Android by downloading the Java package file (mint-4.4.0.jar) and adding the JAR file to your project build path.
You can also download:
- A splunk-mint-4.4.0.zip file that includes the JAR file and the documentation.
- An md5 checksum file to verify the download.
Install the SDK plugin using Maven
If you use Apache Maven (version 3.0.5 and later), get the SDK plugin by doing the following:
- Add the following dependency to your pom.xml file:
- Add the repository details to the pom.xml file:
<dependencies> <!-- other dependencies here --> <dependency> <groupId>com.splunk.mint</groupId> <artifactId>mint</artifactId> <version>4.4.0</version> </dependency> </dependencies>
<repositories> <!-- other repositories here --> <repository> <id>Splunk MINT repo</id> <name>The Splunk MINT Repository</name> <url>https://mint.splunk.com/maven/</url> </repository> </repositories>
Install the SDK plugin using Gradle
You can use the Gradle plugin for Android to add the Splunk MINT repository to your project. We recommend using Gradle version 1.10 for best results. Add the dependency to your build.gradle file, which is located in the root folder of your project, as follows:
apply plugin: 'android' repositories { maven { url "https://mint.splunk.com/gradle/" } } dependencies { compile "com.splunk.mint:mint:4.4.0" }
For more information about Gradle, see the Gradle Plugin User Guide on the Android Tools Project Site.
- Note The https://mint.splunk.com/gradle/ URL is a base URL. The full path to the repository is completed by the plugin.
PREVIOUS MINT Documentation |
NEXT Add Splunk MINT to your Android project |
This documentation applies to the following versions of Splunk MINT™ SDK for Android (Legacy): 4.4.x
Feedback submitted, thanks!