[英]Sikuli Screen constructor giving error :Cannot instatiate the type screen
Sikuli dependency version in maven is: maven 中的 Sikuli 依赖版本是:
<dependency>
<groupId>org.sikuli</groupId>
<artifactId>sikuli-api</artifactId>
<version>1.2.0</version>
</dependency>
I am trying to do coding for image comparison using Sikuli API but getting error on:我正在尝试使用 Sikuli API 进行图像比较编码,但出现错误:
Screen s =new Screen();
even though Screen()
constructor does exist for Screen
class in Sikuli.尽管 Sikuli 中的
Screen
类确实存在Screen()
构造函数。
Please try this instead:请试试这个:
<repositories>
<repository>
<id>snapshot</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.sikulix</groupId>
<artifactId>sikulixapi</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
I think what you are using point to another project.我认为您正在使用的内容指向另一个项目。
Go to https://jar-download.com/?search_box=sikuli and download the jar.转到https://jar-download.com/?search_box=sikuli并下载 jar。 Create java project and add build path.
创建java项目并添加构建路径。
Please try the following:请尝试以下操作:
<dependency>
<groupId>com.sikulix</groupId>
<artifactId>sikulixapi</artifactId>
<version>2.0.4</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.