简体   繁体   English

Android Gradle 插件仅支持 kotlin-android-extensions Gradle 插件版本 1.6.20 及更高版本

[英]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.

相关问题 错误:Android Gradle插件仅支持Kotlin Gradle插件版本1.3.0及更高版本 - ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher Gradle 插件仅支持 Kotlin Gradle 插件版本 1.3.40 及更高版本将 android studio gradle 从 4.2.2 升级到 7.0.0 时出错 - Gradle plugin supports only Kotlin Gradle plugin version 1.3.40 and higher Error when upgrading android studio gradle from 4.2.2 to 7.0.0 带有Android的Gradle插件发布插件 - Gradle Plugin Publishing Plugin with android 将Android Studio Gradle插件更新到最新版本 - Update Android Studio Gradle plugin to last version Gradle插件中的嵌套扩展 - Nested extensions in Gradle plugin Localazy:Localazy Gradle 插件需要 Android Gradle 插件 3.5.0 及更高版本 - Localazy: Localazy Gradle plugin requires Android Gradle plugin 3.5.0 and newer 错误:DexGuard Gradle 插件:不支持 Android Gradle 插件版本。 (3.5.0),支持的版本包括 [2.3.0:3.4.*] - ERROR: DexGuard Gradle plugin: Android Gradle plugin version is not supported. (3.5.0), supported versions include [2.3.0:3.4.*] 如何使用 gradle-plugin 7.2.2 gradle 版本 7.3.3 在 Android Studio 中更改 apk 文件名 - How to change the apk filename in Android Studio with gradle-plugin 7.2.2 gradle version 7.3.3 适用于Android的新Gradle插件中的编译避免 - compilation avoidance in the new Gradle plugin for Android 如何使用 Maven-Publish Android Gradle Plugin 生成的组件在 Kotlin DSL (build.gradle.kts) 中? - How do you use Maven-Publish Android Gradle Plugin's generated components in Kotlin DSL (build.gradle.kts)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM