android - React Native project error in Android Studio
问题描述
Well i am having trouble recently while importing the android directory of a react native project to android studio.
It used to work well before but now its throwing This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer.
any way to fix this?
Thanks in advance
解决方案
In Android view under Gradle Scrips, change two files, then re-sync gradle.
build.grade (Project):
classpath("com.android.tools.build:gradle:4.0.1")
gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip
I just encountered the same issue and solved it using the above fix. You may find this thread useful as well: Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project
推荐阅读
- android-studio - 颤振附加 - 哎呀;Flutter 意外退出
- php - 将表迁移到 db 时出错...表已存在
- client - 连接到多个代理时如何知道哪个代理发布了消息
- javascript - :onchange 事件导致循环通过方法
- django-channels - 我如何在 Django-Channels 中嵌套 URLRouter
- c - C中pthread的读者-作者问题
- python - 将 anaconda 与多个 conda env 一起使用
- r - 闪亮/闪亮仪表板中的图标
- git - 在不断发展的项目中为 2 个遥控器保留一个通用存储库
- python - PyQt5 使用内存中的 QLabel 显示图像