提问人:user3574492 提问时间:11/16/2023 更新时间:11/16/2023 访问量:34
评估项目时出现问题 > 方法:不适用
A problem occurred evaluating project > No signature of method: is applicable
问:
当我构建我的 Android 应用程序时,我一直收到此错误。
似乎与@shopify\react-native-skia包特别相关。
Build file 'D:\dev\proton\node_modules\@shopify\react-native-skia\android\build.gradle' line: 127
A problem occurred evaluating project ':shopify_react-native-skia'.
> No signature of method: build_dv9glgdfsyi4kws5so83p71u2.android() is applicable for argument types: (build_dv9glgdfsyi4kws5so83p71u2$_run_closure2) values: [build_dv9glgdfsyi4kws5so83p71u2$_run_closure2@46d7e7d8]
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
我已经仔细检查了npm,并且该软件包安装正常。
以下是错误指向的代码片段 (build.gradle):
android {
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
namespace "com.shopify.reactnative.skia"
}
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION)
知道这是怎么回事吗?
对于上下文,我使用的是 RN 版本 0.72.7
答: 暂无答案
评论