我正在尝试构建和运行这个存储库 augmented-images我遇到了这个错误.
I am trying to build and run this repository augmented-images and I encounted this error.
由:java.lang.RuntimeException:创建 sfa 时出错.
Caused by: java.lang.RuntimeException: Error creating sfa.
深入到此警告警告!API 'variant.getMergeResources()' 已过时并已替换为 'variant.getMergeResourcesProvider()'.
Which drill down to this warning Warning ! API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
更多来自构建日志分析我看到以下错误错误:无法导入sampledata/airplane/Airplane.obj"
More from the build log analysis I see the following errors ERROR: Failed to import 'sampledata/airplane/Airplane.obj'
我试图找到这个地方
variant.getMergeResources()被使用,所以我可以替换它但没有运气.
is used so I can replace it but no luck.
请帮忙,也许我需要更新插件.我应该遵循哪些步骤,这就是我怀疑的解决方案.
Please assist maybe I need to update the plugin. Which steps should I follow that is what I suspect will be the solution.
推荐答案将 classpath 'com.google.gms:google-services:4.3.0' 更改为 classpath 'com.google.gms:google-services:4.2.0' 目前有效..
Changing classpath 'com.google.gms:google-services:4.3.0' to classpath 'com.google.gms:google-services:4.2.0' works for now..
更多推荐
Android Gradle 插件(警告)API 'variant.getMergeResources()' 已过时并已替换为 'var
发布评论