将现有项目从 GitHub 导入 Android Studio 时出现构建错误

问题描述

我是 Android Studio 的新手,所以我正在尝试编辑现有项目以了解环境。 我的想法是制作一个应用程序来控制 OBD 设备(用于汽车),我发现了很多项目,但我无法在没有收到错误错误的情况下导入它们。

所以,目前,我正在尝试使用 https://github.com/fr3ts0n/AndrOBD 我已经下载了所有源代码并使用 Android Studio 打开它们

一旦我尝试启动模拟器,它就会显示:“构建失败”,出现 1 个错误

Could not determine the dependencies of task ':android:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':androbd:debugCompileClasspath'.
   > Could not resolve project: plugin.
     required by:
         project: android
      > No matching configuration of project :plugin was found. The consumer was configured to find an API of a component,as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug',attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
          - None of the consumable configurations have attributes.

我不明白如何让它工作,提前致谢

解决方法

您也需要下载该插件,因为它位于不同的存储库中。

使用 git

git clone https://github.com/fr3ts0n/AndrOBD.git --recurse-submodules

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...