问题描述
我是 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