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 mvn clean compile exec:java -Dexec.cleanupDaemonThreads=false
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 App.java to track your events.