Welcome to the Openlib Project! This guide will walk you through setting up the project on your local machine, specifically focusing on Android Studio.
Before you begin, make sure you have the following installed and configured on your system:
- Flutter: Follow Flutter installation instructions.
- To verify Flutter installation, run:
flutter doctor
- To verify Flutter installation, run:
- Git: Required to clone the repository.
- Android Studio (recommended): With Flutter plugin support.
First, decide where you want the project folder to be created. You can do this from the terminal as follows:
mkdir OpenlibProject
cd OpenlibProject
Use Git to clone the project into your newly created directory:
git clone https://github.com/dstark5/Openlib.git
After cloning, move into the Openlib folder:
cd Openlib
To open the project:
- For VS Code: Use:
code .
- For Android Studio: Open Android Studio, and then use File > Open to navigate to the Openlib folder.
To ensure compatibility with your target Android devices, update the minimum SDK version:
- Open local.properties (located in
android/
). - Add the below properties:
Here,
flutter.buildMode=release flutter.minSdkVersion=21 flutter.targetSdkVersion=34 flutter.compileSdkVersion=34
"21"
represents the minimum SDK version supported.
To access the emulator options and additional Flutter-specific features:
- Go to File > Settings > Plugins in Android Studio.
- Ensure Flutter support is enabled.
- This will provide access to the emulator tab, where you can choose the device for testing.
To run the app:
- Open main.dart (usually found under
lib/
). - Use the Run button in Android Studio to launch the app on your selected emulator or connected device.
If you encounter any issues, refer to the official Flutter documentation for comprehensive troubleshooting and setup tips.
Feel free to reach out or create an issue if you have any questions or need further assistance.