This repository serves as a refined version of the Android Studio Gemini Starter template. The default template often introduces issues such as outdated dependency versions or incompatible models. To address these, I have made all the necessary adjustments to ensure smooth functionality.
- Seamless Gemini API Integration: Updated dependencies for compatibility.
- Clean Project Setup: Resolved configuration issues for a streamlined development experience.
- Fully Functional Example: A working implementation of Gemini API, ready to use.
Follow these steps to get started:
-
Clone the Repository
Clone this repository to your local machine using the following command:git clone https://github.com/prathamngundikere/Implementing_GeminiAPI_in_Android_App.git
-
Set Up API Key
-
Navigate to the
local.properties
file in the project root. -
Add your API key as shown below:
apikey="your_api_key_here"
-
-
Sync the Project
Open the project in Android Studio and sync the Gradle files.
-
Run the Application
Build and run the project on your desired Android device or emulator
This repository eliminates the headaches often encountered with the default Gemini Starter template by ensuring:
- Updated dependency versions.
- Compatible model usage.
- Clear instructions for setup and deployment.
Feel free to fork this project, open issues, or submit pull requests for further improvements!