No matching configuration of project :libusb was found.

简介: No matching configuration of project :libusb was found.

此文并无多大意义,只是记录一下遇到的问题。


具体错误

Could not determine the dependencies of task ':OTGCamera:compileDebugRenderscript'.
> Could not resolve all task dependencies for configuration ':OTGCamera:debugCompileClasspath'.
   > Could not resolve project :libusb4javaso.
     Required by:
         project :OTGCamera
      > No matching configuration of project :libusb4javaso 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' but:
          - None of the consumable configurations have attributes.

解决办法

 吾这个项目是从外部复制进来的。刷新后一直不对,仔细对比文件没发现差异。于是删除了重新复制,揭示gradle.build一些配置错误,按照揭示处理后正常。

目录
相关文章
|
9月前
|
人工智能 机器人 测试技术
【CMake报错】Cannot specify compile definitions for target “PRIVATE“ which is not built...
【CMake报错】Cannot specify compile definitions for target “PRIVATE“ which is not built...
121 0
|
9月前
|
Kubernetes 容器
error: no configuration has been provided, try setting KUBERNET
error: no configuration has been provided, try setting KUBERNET
94 0
Error: Plugin/Preset files are not allowed to export objects, only functions……
Error: Plugin/Preset files are not allowed to export objects, only functions……
|
编译器
[√]添加预处理的2个不同方式:target_compile_definitions / add_definitions
[√]添加预处理的2个不同方式:target_compile_definitions / add_definitions
330 0
|
开发工具
WARNING: library configuration mismatch
WARNING: library configuration mismatch
364 0
|
Java Maven
No valid Maven installation found. Either set the home directory in the configuration dialog or set
No valid Maven installation found. Either set the home directory in the configuration dialog or set
1145 0
No valid Maven installation found. Either set the home directory in the configuration dialog or set
No plugin found for prefix ‘doclint‘ in the current project
No plugin found for prefix ‘doclint‘ in the current project
151 0
cl.exe is unable to create an executable file. C compiler test failed.
cl.exe is unable to create an executable file. C compiler test failed.
221 0
|
Java
编译OpenJDK:invalid configuration Files: machine Files not recognized
编译OpenJDK:invalid configuration Files: machine Files not recognized
127 0
No matching configuration of project :libusb was found.
No matching configuration of project :libusb was found.
1228 0