An example app using the Ampli JRE SDK
You will need to do the following before running the app.
- Create a
.env
with your API keycp .env.example .env
- Set your Amplitude API key
AMPLITUDE_API_KEY=your-amplitide-api-key
Run the application with ./gradlew run
or using your favorite IDE.
If you want to use your own tracking plan to generate the Ampli SDK:
npm i -g @amplitude/ampli
ampli pull
- Update Main.kt to track your events.