0
我正在使用Microsoft Device Twins教程available here。使用maven 3.5.0和java 1.8.0_144。Azure DeviceTwinStatusCallBack - 找不到符号
我的服务应用程序正在建设没有任何错误,但问题是与设备的应用程序。 后从教程的复制粘贴代码,并试图建立与命令的项目“MVN清洁套装-DskipTests”我收到此错误:
cannot find symbol
[ERROR] symbol: class DeviceTwinStatusCallBack
[ERROR] location: class com.mycompany.app.App
还有就是我的pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>simulated-device</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>simulated-device</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure.sdk.iot</groupId>
<artifactId>iot-device-client</artifactId>
<version>1.3.33</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
DeviceTwinStatusCallBack在Microsoft Azure文档中不可用。任何人有任何想法?