gpt4 book ai didi

android-studio - ARToolKit ARSimpleProj错误

转载 作者:行者123 更新时间:2023-12-03 17:52:30 25 4
gpt4 key购买 nike

当我在Android Studio中打开ARSimpleProj并尝试更新gradle版本时,出现以下消息:

Failed to update the version of the Android Gradle plugin.
Please click 'OK' to perform a textual search and then update the build files manually.


在此之后,我得到此错误:

Error:(58, 0) Gradle DSL method not found: 'android()'
Possible causes:
* The project 'ARSimpleProj' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0). Fix plugin version and sync project
* The project 'ARSimpleProj' may be using a version of Gradle that does not contain the method. Open Gradle wrapper file
* The build file may be missing a Gradle plugin. Apply Gradle plugin.


我尝试从顶级 android->buildToolsVersion文件中删除 build.gradle和依赖项标签(如 AS_Migration文档中所示),但仍然无法正常工作。

最佳答案

我终于做到了。在Android Studio上打开项目时,我选择“稍后提醒我”以推荐Android Gradle插件更新。之后,我可以在手机上执行并安装该应用程序。

关于android-studio - ARToolKit ARSimpleProj错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36879613/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com