Skip to main content

Featured post

How to Insert line break in Text component in React Native

Hi, I was developing an application in react native.I have to handle lots of text data in this small react native application.I have used  Text component in react native many times. While working on this application,i had a requirement to display some text content with line breaks.I will explain it clearly with an example.I want to display a text as shown below  Welcome Please subscribe my channel I wrote react native code as shown below <View> <Text> Welcome Please subscribe my channel </Text> <View> When i run these lines of code,It will display text as shown below Welcome Please subscribe my channel   - instead of displaying in two lines with line break,it displays in a single line.So i have to find a solution to insert line break in Text component in React Native.After lots of research,i found a clean solution as shown below <View> <Text> Welcome{"\n"} Please subscribe my channel </Text> <View> Here ...

This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2021.2.1 or newer

Dear friends,


I was working in a react native project.I tried  to run android part of the application using android studio.In order to check the application on android emulator,I waited for the build process to be completed successfully.Unfortunately i got error as shown below 





This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2021.2.1 or newer.


* Try:

> Run with --info or --debug option to get more log output.

> Run with --scan to get full insights.


* Exception is:

com.intellij.openapi.externalSystem.model.ExternalSystemException: This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2021.2.1 or newer.




Actually i couldn't understand what is the reason behind this error .Becuase when i check my package.json file 


 "dependencies": {

    "react": "18.2.0",

    "react-native": "0.71.3"

  }


All dependencies are updated and actually i could not find the solution for long time.Later i checked  android gradle plugin and gradle versions in my android application.In android studio i opened  File -> Project Structure


currently my android gradle plugin and gradle versions  are as shown below





So as says in the error This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project,please retry with version 2021.2.1 or newer, i need to upgrade my android studio installed in the system.Current stable version of android studio is Android Studio Electric Eel | 2022.1.1 Patch 2.So i decided to upgrade  android studio installed in my system. Click Help -> Check for Updates


it will show current stable version and follow the instructions.If you want to know how to update android studio to latest version please watch the video given below






After successfully upgraded to latest stable android studio version,you may please build the project again.It will build successfully as shown in the above video without any error.