繁体   English   中英

将现有项目从 GitHub 导入到 Android Studio 时生成错误

[英]Build errors when importing an existing project to Android Studio from GitHub

我是 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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM