git clone https://github.com/S488U/su_scanner.git
- Node.js: Ensure Node.js v20 or higher is installed. You can download it from Node.js official website.
- Java JDK: Install Java JDK v17 or higher. Download from Oracle's website.
To run the app on an emulator, ensure that ADB, SDK Manager, and NDK are properly configured. For the latest version of react-native-screens, NDK v29 is recommended for smoother performance.
To run the app on an Android device:
- Enable USB Debugging in Developer Mode:
- Go to Settings → About Phone → Tap Build Number 7 times to unlock Developer Mode.
- Enable USB Debugging in Developer Options.
- Open the project folder:
cd su_scanner
- Install dependencies:
npm install
Ensure all project dependencies are properly set up by running the following command:
npx react-native doctor
Once everything is configured correctly, you can start the application:
npx react-native run-android
Note: If the app doesn't load completely after installing packages, stop the server and rerun the application.
If some functions aren't working as expected, follow these steps:
- Navigate to the
androidfolder:
cd android
- Run the command to clean the build cache:
gradlew clean
This will remove cached builds. Afterward, rerun the project with:
npx react-native run-android