mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Added "Implementation for Android Studio" section
@ -42,6 +42,46 @@ NOTE: libraylib.a will be generated in `raylib/src` directory by default.
|
||||
|
||||
WARNING: Maybe your Android device uses a 64bit CPU but be careful, installed Android OS could still be 32bit, not allowing 64bit apps.
|
||||
|
||||
## Implementation for Android Studio
|
||||
|
||||
The [Raymob repository](https://github.com/Bigfoot71/Raymob) offers an implementation of raylib specifically designed for Android Studio. This template provides a ready-to-use configuration for developing applications using raylib.
|
||||
|
||||
### Implementation Contents
|
||||
|
||||
This implementation for Android Studio includes the following:
|
||||
|
||||
- The source code of the latest stable version of raylib directly integrated.
|
||||
- A preconfigured project structure to facilitate raylib application development.
|
||||
- Single `gradle.properties` file to define all configuration variables of your project.
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- SDK API 33.0.0 and NDK r21 (or higher, compatible with CMake 3.22.1)
|
||||
|
||||
### Usage
|
||||
|
||||
To use the Raymob template:
|
||||
|
||||
1. Clone the GitHub repository to your local machine.
|
||||
2. Open Android Studio and select "Import Project".
|
||||
3. Navigate to the directory where the cloned repository is located and select it for opening.
|
||||
4. Wait for Android Studio to import the project and configure the necessary dependencies.
|
||||
5. Once the import is complete, you can start developing your raylib application in the `app/cpp` directory.
|
||||
|
||||
_If you already have the NDK and SDK API 33 without Android Studio, you should still be able to compile using the `gradlew` or `gradlew.bat` files._
|
||||
|
||||
### Customization
|
||||
|
||||
The Raymob template can be customized to fit the specific needs of your project. You can add additional dependencies or libraries to the project by modifying `gradle.build` or `CMakeLists.txt`.
|
||||
|
||||
### Compatibility
|
||||
|
||||
By default, the Raymob template targets APIs 24 to 33, which corresponds to Android 7.0 to Android 13 (so 96.2% of devices according to [apilevels.com](https://apilevels.com/)). You can also adapt it to target other API versions if necessary.
|
||||
|
||||
### Support
|
||||
|
||||
If you have any questions or encounter issues while using this implementation, you can seek help by submitting an issue on the [Raymob repository](https://github.com/Bigfoot71/Raymob/issues).
|
||||
|
||||
## Compiling a raylib game for Android (using a [project template](https://github.com/raysan5/raylib-game-template))
|
||||
|
||||
_Step 1._ To build an APK, navigate to directory `raylib-game-template/src/` and edit `Makefile.Android`. Replace these
|
||||
|
||||
Reference in New Issue
Block a user