【问题标题】:Can not find symbol method metafactory(Lookup,String,MethodType,MethodType,MethodHandle,MethodType)找不到符号方法元工厂(查找、字符串、方法类型、方法类型、方法句柄、方法类型)
【发布时间】:2019-10-28 08:30:31
【问题描述】:

在 react native 中集成 firebase 后,我收到此错误。我已经搜索并尝试更改 gradle 版本,而且我已经重新安装了 sdk 构建工具。

这是我的 build.gradle 配置

buildscript {
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:3.4.2")
        classpath 'com.google.gms:google-services:4.2.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

【问题讨论】:

    标签: java react-native android-studio gradle android-sdk-tools


    【解决方案1】:

    使用构建工具 28.0.3 时遇到同样的问题,

    首先在 android studio 上转到工具 > SDK 管理器 > SDK 工具

    勾选“显示包裹详情”

    取消勾选28.0.3卸载然后ok

    再次勾选安装

    【讨论】:

      猜你喜欢
      • 2014-01-18
      • 2018-11-06
      • 1970-01-01
      • 2021-04-09
      • 1970-01-01
      • 1970-01-01
      • 2013-07-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多