小编Ahm*_*man的帖子

您如何解决以下错误:评估项目“:app”时出现问题。> 没有方法签名:

尝试使用 android 运行我的 react-native 应用程序时出现以下错误,我不确定为什么,有什么想法吗?

*其中:构建文件“/Users/ahmeeyagoldman/Documents/TikTok/android/app/build.gradle”行:123

  • 出了什么问题:评估项目“:app”时出现问题。

没有方法签名:build_26i9j525hbm41pwpexiy08g68.android() 适用于参数类型:(build_26i9j525hbm41pwpexiy08g68$_run_closure1) 值:[build_26i9j525hbm41pwpexiy08g68.android() 文件:My

到目前为止,我已尝试:

  • 升级和降级我的 gradle,-清理并重建项目,-使缓存无效/重新启动,-注释掉新的代码行,
  • 编辑我的配置(没有太大变化)

如果我尝试另一个项目,我可以使用 react-native 运行一个 android 应用程序,但这个项目抛出错误。需要注意的事情我不确定这是否重要,但这与 AWS 相关。

apply plugin: "com.android.application"

import com.android.build.OutputFile

/**
 * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
 * and bundleReleaseJsAndAssets).
 * These basically call `react-native bundle` with the correct arguments during the Android build
 * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
 * bundle directly from the development …
Run Code Online (Sandbox Code Playgroud)

android method-signature build.gradle android-gradle-plugin react-native

4
推荐指数
1
解决办法
5265
查看次数