5/30/2023 0 Comments React native on android studio![]() ![]() ![]() Ĭlasspath ':gradle:1.3.1' classpath 'de.undercouch:gradle-download-task:3.1.2' // NOTE: Do not place your application dependencies here they belong // in the individual module adle filesĪdd the :ReactAndroid project in android/adle. Adding gradle dependenciesĪdd gradle-download-task as dependency in android/adle. For example, to install the master branch from the official repo, run the following: npm install -save github:facebook/react-native #masterĪlternatively, you can clone the repo to your node_modules directory and run npm install inside the cloned repo. Installing the forkįirst, you need to install react-native from your fork. You can find further instructions on the official page. dir=/Users/your_unix_name/android-ndk/android-ndk-r10e dir=/Users/your_unix_name/android-sdk-macosx Step 2: Create a local.properties file in the android directory of your react-native app with the following contents:Įxample: sdk. ![]() See below for examples from common shells.Įxample: export ANDROID_SDK=/Users/your_unix_name/android-sdk-macosxĮxport ANDROID_NDK=/Users/your_unix_name/android-ndk/android-ndk-r10e Note: Files may vary based on shell flavor. Step 1: Set environment variables through your local shell. Android NDK (download links and installation instructions below).Android Support Repository >= 17 (for Android Support Library).SDK build tools version 23.0.1 (buildToolsVersion in adle).Android SDK version 23 (compileSdkVersion in adle).Make sure you have the following installed: PrerequisitesĪssuming you have the Android SDK installed, run android to open the Android SDK Manager. You will need to build React Native from source if you want to work on a new feature/bug fix, try out the latest features which are not released yet, or maintain your own fork with patches that cannot be merged to the core. ![]()
0 Comments
Leave a Reply. |