This guide will help you set up and run the application successfully.
- Android Studio version: Girrafe 2022.3.1
- Java Development Kit (JDK): Java 17
- Gradle version: 8.1.1
- Go to https://newsapi.org/.
- Click on "Get Api Key" and follow the instructions to obtain an API key.
- Open the project in Android Studio.
- Navigate to the directory:
secrets/default.properties
. - Replace Base Url and API Key in default.properties:
In the
default.properties
file, find the line:Replace "API_KEY" with the API key you obtained earlier.BASE_URL = "https://newsapi.org/v2/" API_KEY = ""
- Gradle Version Configuration:
- Open Android Studio.
- Go to Preferences/Settings > "File" > "Project Structure" > "Project".
- Under "Gradle Version," select 8.1.1.
- JDK Version Configuration:
- Open Android Studio.
- Go to Preferences/Settings > "File" > "Project Structure" > "SDK Location" > "Gradle Settings".
- Under "Gradle JDK," select Java 17.
- Open the project in Android Studio.
- Press the "Run" button in Android Studio to run the application.
The project uses Kotlin-DSL build scripts to manage dependencies and plugins.
For additional information and resources, you may find the following references helpful:
- Project Repository: Check out the official repository for more insights into the Android NowInAndroid project.
Feel free to explore these references to gain a deeper understanding of the project's background and related materials.