Published on 10/11/2022
Published by Pratik Takle
Upgrade your android related libraries
- I would suggest while compiling your android app use “Yarn” as a pkg manager.
- Before you start using Yarn, you’ll first need to install it on your system. There are many different ways to install Yarn, but a single one is recommended and cross-platform:
- It is recommended to install Yarn through the npm package manager, which comes bundled with Node.js when you install it on your system.
- Once you have npm installed you can run the following both to install and upgrade Yarn:
-
1npm install --global yarn
- Check that Yarn is installed by running:
-
1yarn --version
-
Upgrading Node.js to the latest version
- Download the Latest Node.js from nodejs.org/en/download
- Windows
- The module
n
makes version management easy: -
1npm install n -g
- For the latest stable version:
-
1n stable
- For the latest version:
-
1n latest
- The module
- Mac
- If you originally installed Node.js using brew then run:
-
1brew upgrade node
-
Gradle Installation
-
Download the latest Gradle distribution
- Unpack the distribution
- Mac user
-
1234$ mkdir /opt/gradle$ unzip -d /opt/gradle gradle-7.5.1-bin.zip$ ls /opt/gradle/gradle-7.5.1LICENSE NOTICE bin getting-started.html init.d lib media
- Windows user
- Create a new directory
C:\Gradle
with File Explorer.Open a second File Explorer window and go to the directory where the Gradle distribution was downloaded. Double-click the ZIP archive to expose the content. Drag the content foldergradle-7.5.1
to your newly createdC:\Gradle
folder.Alternatively, you can unpack the Gradle distribution ZIP intoC:\Gradle
using an archiver tool of your choice.
- Configure your system environment
- Mac user
1$ export PATH=$PATH:/opt/gradle/gradle-7.5.1/bin - Windows user
In File Explorer right-click on theThis PC
(orComputer
) icon, then clickProperties
->Advanced System Settings
->Environmental Variables
.UnderSystem Variables
selectPath
, then clickEdit
. Add an entry forC:\Gradle\gradle-7.5.1\bin
. Click OK to save.
- Mac user
- Verify your installation
-
1$ gradle -v
-
- Upgrade with the Gradle Wrapper
- If your existing Gradle-based build uses the Gradle Wrapper, you can easily upgrade by running the
wrapper
task, specifying the desired Gradle version:
1$ ./gradlew wrapper --gradle-version=7.5.1 --distribution-type=bin
123$ ./gradlew tasksDownloading https://services.gradle.org/distributions/gradle-7.5.1-bin.zip...
- If your existing Gradle-based build uses the Gradle Wrapper, you can easily upgrade by running the
- Android SDK
- https://stackoverflow.com/questions/34532063/finding-android-sdk-on-mac-and-adding-to-path
-