[英]The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher
I am trying tog get my React Native app (with expo modules, but not built on expo) deployed to the Google Play Store, and I keep getting this error when I try to build...我正在尝试将我的 React Native 应用程序(带有 expo 模块,但不是基于 expo 构建)部署到 Google Play 商店,并且在尝试构建时我不断收到此错误...
The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher.
The following dependencies do not satisfy the required version:
project ':expo' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10
My issue us, the line that it seems to be referencing, project ':expo' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10
doesn't exist anywhere in my code, maybe in the node modules but I have no way of knowing.我的问题是,它似乎引用的那一行,
project ':expo' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10
在我的代码中的任何地方都不存在,也许在节点模块中但是我无从得知。 I have absolutely no idea what kotlin is and never heard of it before this.我完全不知道 kotlin 是什么,在此之前从未听说过。 I tried looking around for where to upgrade by kotlin-gradle-plugin, but thats nowhere in my app.json or package.json or any other config files.
我试着四处寻找通过 kotlin-gradle-plugin 升级的地方,但在我的 app.json 或 package.json 或任何其他配置文件中都没有。 I saw some message boards with similar issues telling me to change this line inside of build.gradle
我看到一些有类似问题的留言板告诉我更改 build.gradle 中的这一行
classpath('com.android.tools.build:gradle:7.3.0')
to make 7.3.0
match the version I need, but I firmly believe 7.3.0 is greater than 1.6.20, so I highly doubt that solution has any actual merits使
7.3.0
匹配我需要的版本,但我坚信 7.3.0 大于 1.6.20,所以我非常怀疑该解决方案是否有任何实际优点
Apparently, the current version of expo-modules are incompatible with the latest version of React Native (0.70.0) and how it compiles Android Builds.显然,当前版本的 expo-modules 与最新版本的 React Native (0.70.0) 及其编译 Android 构建的方式不兼容。 I downgraded react-native to 0.69.5.
我将 react-native 降级为 0.69.5。 This ultimately led me to other issues but hopefully this can help somebody else.
这最终导致我遇到其他问题,但希望这可以帮助其他人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.