android - 构建 Gradle 错误无法获取未知属性 'compile'

标签 android react-native gradle

我在运行 android 时对 native porject 做出了 react ,此错误显示
构建文件 'C:\dev\icnet_final\android\app\build.gradle' 行:213
评估项目 ':app' 时出现问题。

Could not get unknown property 'compile' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.

最佳答案

如果在 Gradle 升级后发生这种情况,请替换 compileimplementation

关于android - 构建 Gradle 错误无法获取未知属性 'compile',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69044250/

相关文章:

react-native - 使用 React Native 在相机 View 上显示自定义按钮

macos - 没有 JRE 的 Mac 的 JavaFX 自包含应用程序打包

android - 无法使用 Robolectric 编译测试

android - 当我从android中的应用程序注销时如何禁用推送通知

android - Expo React Native,将 PDF 文件保存到“下载”文件夹

javascript - onMessage 不能在 React Native 中工作

gradle - 在build.gradle中不定义版本时,由什么决定spring boot依赖项的版本?

android - 如何在填充有 ImageView 的 GridView 中添加 TextView

android - 运行 4.4.2 的 SPH-L710 (Sprint Galaxy S III) 误报 xdpi 和 ydpi

android - 将XML动画android更改为动态代码